Answers for "fake user agent python library"

1

python requests firefox headers

import requests

url = 'http://www.ichangtou.com/#company:data_000008.html'
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}

response = requests.get(url, headers=headers)
print(response.content)
Posted by: Guest on October-26-2020
0

fake user agent python

pip install fake-useragent
Posted by: Guest on June-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language