摘要: ''' POST请求自动登陆ithub 请求URL: https://github.com/login 请求方式: POST 请求头: Cookie User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, l... 阅读全文
posted @ 2019-07-01 16:55 Auraro997 阅读(256) 评论(0) 推荐(0) 编辑
摘要: import time import requests # 爬虫三部曲 # 1.发送请求 def get_page(url): response = requests.get(url) return response # 2.解析数据 import re def parse_index(html): # findall匹配所有 # re.findall('正则匹配... 阅读全文
posted @ 2019-07-01 16:40 Auraro997 阅读(162) 评论(0) 推荐(0) 编辑