Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

amazon response 503 python

headers = {
  'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36',
}

res = requests.get(productUrl, headers=headers)
Comment

amazon response 503 python


import requests

headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0'}
response = requests.get('https://www.amazon.com', headers=headers)
print(response)

Comment

PREVIOUS NEXT
Code Example
Python :: django import csrf exemplt 
Python :: selenium webdriver 
Python :: pytorch use multiple gpu 
Python :: python random word 
Python :: split string by length python 
Python :: swapcase 
Python :: Creating virtual environments 
Python :: matplotlib bar chart value_counts 
Python :: pandas shift columns up until value 
Python :: django form widget 
Python :: how to check if all characters in string are same python 
Python :: how to copy one dictionary to another in python 
Python :: how to get column names having numeric value in pandas 
Python :: raise python 
Python :: location of last row dataframe 
Python :: delete files with same extensions 
Python :: python get day month year 
Python :: how to get all folders on path in python 
Python :: dataframe fillna with 0 
Python :: read excel file spyder 
Python :: python defaultdict 
Python :: python swap two elements 
Python :: how to make a randomized pasword genirator in python 
Python :: save a file as a pickle 
Python :: list of prime numbers in python with list comprehension 
Python :: variable naming rule in python 
Python :: python check if string is number reges 
Python :: os.listdir in python 
Python :: len of int python 
Python :: convert string in list format to list python 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =