dimanche 21 juin 2020

Request an text document from the web

Does anybody know why is it doing this error? I can't seem to request the web page

urllib.error.HTTPError: HTTP Error 403: Forbidden

This is my code

from urllib.request import urlopen

txt_file = urlopen("https://www.py4e.com/code3/mbox.txt")



Aucun commentaire:

Enregistrer un commentaire