摘要: from selenium import webdriverimport time#此代码是模拟浏览器操作# 每次点击后都要睡眠一会,要不网页还没响应就进行下一步,很容易报错,也容易出现验证码def getBaiDu(userName,password,keyword): try: chrome_o 阅读全文
posted @ 2020-01-20 16:52 茂财 阅读(248) 评论(0) 推荐(0) 编辑
摘要: #相关库from email.mime.base import MIMEBasefrom email import encodersfrom email.mime.multipart import MIMEMultipartfrom email.header import Headerfrom em 阅读全文
posted @ 2020-01-20 10:38 茂财 阅读(550) 评论(0) 推荐(0) 编辑
摘要: package com.wiscom.ism.webapi.ismController; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; import org.springframework.stereotype.Component;... 阅读全文
posted @ 2018-12-15 00:01 茂财 阅读(10496) 评论(0) 推荐(0) 编辑
摘要: public ApiResult getState(@FormParam("deviceType") int deviceType, @FormParam("precinctId") String precinctId, @FormParam("deviceName") String deviceName, @FormParam("on... 阅读全文
posted @ 2018-12-13 23:15 茂财 阅读(117) 评论(0) 推荐(0) 编辑
摘要: public List getState(int deviceType, String precinctId, String deviceName, String onLine) { List deviceList = cfgDeviceMapper.findAllDevice();//查所有... 阅读全文
posted @ 2018-12-13 23:08 茂财 阅读(5288) 评论(0) 推荐(0) 编辑
摘要: package com.wiscom.ism.webapi.ismUtil; import org.apache.commons.io.FileUtils; import org.springframework.stereotype.Component; import org.springframework.util.ResourceUtils; import java.io.File; i... 阅读全文
posted @ 2018-12-13 22:53 茂财 阅读(1191) 评论(0) 推荐(0) 编辑
摘要: public static String doPost(String httpUrl, String param) { HttpURLConnection connection = null; InputStream is = null; OutputStream os = null; BufferedReader br = nu... 阅读全文
posted @ 2018-12-13 22:48 茂财 阅读(287) 评论(0) 推荐(0) 编辑
摘要: package com.wiscom.ism.usb.services; import com.wiscom.ism.common.pojo.EnumObject; import com.wiscom.ism.usb.dao.CfgDictionaryMapper; import com.wiscom.ism.usb.dao.UsbEventMapper; import com.wiscom.... 阅读全文
posted @ 2018-11-10 10:53 茂财 阅读(1148) 评论(0) 推荐(0) 编辑
摘要: package com.Snmp4jFirstDemo; import org.snmp4j.*;import org.snmp4j.mp.SnmpConstants;import org.snmp4j.smi.GenericAddress;import org.snmp4j.smi.OID;imp 阅读全文
posted @ 2018-11-09 09:58 茂财 阅读(1832) 评论(0) 推荐(1) 编辑
摘要: package com.fenye.puil.usbDemo;import java.nio.file.FileSystems;import java.nio.file.Path;import java.nio.file.Paths;import java.nio.file.StandardWatc 阅读全文
posted @ 2018-11-09 09:52 茂财 阅读(511) 评论(0) 推荐(0) 编辑