Python:Extraindo informações URL

De BrapciWiki
Ir para navegação Ir para pesquisar

Módulo: urllib

[https://docs.python.org/3/howto/urllib2.html]

Lendo uma URL

import urllib
req = urllib.request.Request('https://www.brapci.inf.br')
with urllib.request.urlopen(req) as response:
     the_page = response.read()
print(the_page)