摘要:
1 安装 fake_useragent pip install fake_useragent 2 使用 # -*- coding:utf-8 -*- from fake_useragent import UserAgent import random ua = UserAgent() headers 阅读全文
摘要:
例如: url = 'https://zozo.jp/shop/mrolive/goods-sale/44057773/?did=73037089' resp = requests.get(url=url) html = etree.HTML(resp.text) title = html.xpat 阅读全文