Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

user agent for python

headers = {"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"}

#Lets test what headers are sent by sending a request to HTTPBin
r = requests.get('http://httpbin.org/headers',headers=headers)
pprint(r.json())
Comment

PREVIOUS NEXT
Code Example
Python :: python selenium switch to window 
Python :: how to plot kmeans graph 
Python :: axis font size matplotlib 
Python :: pygame change logo 
Python :: extract float from string python 
Python :: connect postgresql with python sqlalchemy 
Python :: make first row columns pandas 
Python :: pandas percent change between two rows 
Python :: python tk fullscreen 
Python :: install a specific version of django 
Python :: complex phase python 
Python :: list all virtualenv in python 
Python :: how to get a random element from an array in python 
Python :: sklearn roc curve 
Python :: plotly set axes limits 
Python :: python combine side by side dataframes 
Python :: tkinter image 
Python :: pytorch tensor change dimension order 
Python :: read os.system output python 
Python :: get video width and height cv2 
Python :: string of numbers to list of integers python 
Python :: pip install torch error 
Python :: difference python list and numpy array 
Python :: set window size tkinter 
Python :: kivy fixed window 
Python :: opencv grayscale to rgb 
Python :: python sort list by last element 
Python :: 2 - 20 python 
Python :: Installing yfinance using pip 
Python :: how to take list of float as input in python 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =