I am trying to web scrape the content of few of the websites. But I noticed that for some of the websites I am getting the response with status code as 200. However, for some other of them I am getting 404 status code with the response. But when I am opening these websites (returning 404) in the browser, it is loading fine for me. What am I missing here?
For example:
import requests
url_1 = "https://www.transfermarkt.com/jumplist/startseite/wettbewerb/GB1"
url_2 = "https://stackoverflow.com/questions/36516183/what-should-i-use-instead-of-urlopen-in-urllib3"
page_t = requests.get(url_2)
print(page_t.status_code) #Getting a Not Found page and 404 status
page = requests.get(url_1)
print(page.status_code) #Getting a Valid HTML page and 200 status