import requests
src = requests.get('https://alternativeto.net/')
print(src)
<Response [403]>
import requests
headers = {'user-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0',
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
}
src = requests.get('https://alternativeto.net/',headers=headers)
print(src)
<Response [200]>