Skip to content

Instantly share code, notes, and snippets.

@rehmatworks
Created September 10, 2021 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rehmatworks/565d9847cd5ad1cc6990f55b487e3c33 to your computer and use it in GitHub Desktop.
Save rehmatworks/565d9847cd5ad1cc6990f55b487e3c33 to your computer and use it in GitHub Desktop.
import requests
headers = {
'sec-ch-ua': '"Google Chrome";v="93", " Not;A Brand";v="99", "Chromium";v="93"',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36',
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
}
response = requests.get('https://www.dnb.com/business-directory/company-profiles.pfizer_inc.140f48fa0b37556f925afcaec7b5c566.html', headers=headers)
print(response)
@Eiddd
Copy link

Eiddd commented Sep 10, 2021

Thanks Sir it is working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment