摘要: import requestsimport osurl = input("Please input URL\n")root = "D://pics//" kv = { "User-agent":"Mozilla/5.0" }path = root + url.sp... 阅读全文
posted @ 2018-02-09 15:50 Assassin_poi君 阅读(164) 评论(0) 推荐(0) 编辑
摘要: import requestsurl = "http://m.ip138.com/ip.asp?ip="IpAddress = input("Please input the ip address\n")try: r = requests.get(url+IpAddr... 阅读全文
posted @ 2018-02-09 15:44 Assassin_poi君 阅读(406) 评论(0) 推荐(0) 编辑
摘要: import requestsimport oskv = { "User-agent":"Mozilla/5.0"#模拟浏览器 } def getHtmlText(url): try: r = requests.get(url,timeout = 30,head... 阅读全文
posted @ 2018-02-09 15:43 Assassin_poi君 阅读(713) 评论(0) 推荐(0) 编辑