随笔分类 - 爬虫
selenium相关配置
摘要:ChromeDriver驱动版本:https://googlechromelabs.github.io/chrome-for-testing/ # 创建一个配置对象 options = webdriver.ChromeOptions() # 代理设置 options.add_argument('--
fiddler隐藏掉不需要的数据包格式
摘要:REGEX:(?insx)/[^\?/].(css|ico|jpg|png|gif|bmp|wav|js|jpeg)(\?.)?$ or .css .ico .jpg .png .gif .bmp .wav .js .jpeg
常用的hook代码
摘要:// ==UserScript== // @name hook xxx // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You
猿人学5
摘要:import requests from collections import Counter # 使用 Fiddler抓包工具获取请求头顺序 headers = { 'Host': 'match.yuanrenxue.cn', 'Connection': 'keep-alive', 'Pragma
python快代理
摘要:快代理 # proxiexUtils import requests def get_proxies_private(): """私密代理""" url = 'api地址' ip = requests.get(url).content.decode() proxies = { "http": f"h