浏览器 User Agent 生成器
Python3.5 下测试通过
from ImNotSpider import ImNotSpider as imsp ins = imsp.ImNotSpider() #随机 ua = ins.random() ua = ins.pc() ua = ins.wap() ua = ins.pc_linux() ua = ins.pc_windows() ua = ins.pc_mac() ua = ins.internet_explorer()#Windows PC ua = ins.chrome_pc() ua = ins.chrome_pc_linux() ua = ins.chrome_pc_mac() ua = ins.chrome_pc_windows() ua = ins.firefox_pc() ua = ins.firefox_pc_linux() ua = ins.firefox_pc_mac() ua = ins.firefox_pc_windows() ua = ins.android() ua = ins.iphone() ua = ins.chrome_wap() ua = ins.chrome_wap_android() ua = ins.chrome_wap_iphone() ua = ins.wechat() ua = ins.wechat_android() ua = ins.wechat_iphone() ua = ins.uc_browser_android() #UC浏览器 ua = ins.baidu_box_app() #手机百度 ua = ins.baidu_box_app_android() ua = ins.baidu_box_app_iphone()
使用 https://github.com/lbp0200/ImNotSpiderWebAPI ,搭建一个 Web 接口,调用 Web 接口即可
pip install git+https://github.com/lbp0200/ImNotSpiderWebAPI.git