上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 96 下一页
摘要: 楔子 在爬虫中进行request请求,很多时候,都需要添加请求头,不然服务器会认为是非法的请求,从而拒绝你的访问。 import requests url = 'https://www.zhihu.com/question/315387406/answer/812734512' response = 阅读全文
posted @ 2020-01-17 20:26 干it的小张 阅读(226) 评论(0) 推荐(0)
摘要: import requestsh = { "user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"} 阅读全文
posted @ 2020-01-17 20:17 干it的小张 阅读(454) 评论(0) 推荐(0)
摘要: 1、 网址:http://neeo.cc:6002/pinter/bank/page/login 2、 用户名:admin 密码:1234 3、 查看余额 4、 5、 不需要登录的代码和结果如下: p = {"userName":"admin"} response = requests.get(ur 阅读全文
posted @ 2020-01-17 19:13 干it的小张 阅读(691) 评论(0) 推荐(0)
摘要: import timeimport randomimport getpass# 处理图片from PIL import Imagefrom selenium import webdriverfrom selenium.webdriver.common.action_chains import Act 阅读全文
posted @ 2020-01-17 17:46 干it的小张 阅读(252) 评论(0) 推荐(0)
摘要: 1、保存图片: import requestsurl = "http://dmimg.5054399.com/allimg/pkm/pk/22.jpg"response = requests.get(url = url)查看状态码: print(response.status_code)查看文本数据 阅读全文
posted @ 2020-01-17 00:26 干it的小张 阅读(510) 评论(0) 推荐(0)
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 96 下一页