scrapy-spalsh使用UA和IP代理
核心
设置UA,优先在lua脚本中使用splash:set_user_agent(“{ua}”)
设置ip代理,使用SplashRequest的proxy
代码
1 | pip install fake-useragent |
1 | # -*- coding: utf-8 -*- |
与其临渊羡鱼,不如退而结网
设置UA,优先在lua脚本中使用splash:set_user_agent(“{ua}”)
设置ip代理,使用SplashRequest的proxy
1 | pip install fake-useragent |
1 | # -*- coding: utf-8 -*- |
微信
支付宝
imToken