Python Forum
Beautifulsoup don't get me the page
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beautifulsoup don't get me the page
#2
check status to make sure page has been downloaded.
response = requests.get(pagina1)
if response.status_code == 200:
    soup=BeautifulSoup(response.content,"lxml")
else:
    print(f"unable to fetch page: {pagina1}")
Reply


Messages In This Thread
Beautifulsoup don't get me the page - by mariolopes - Oct-20-2019, 05:55 PM
RE: Beautifulsoup don't get me the page - by Larz60+ - Oct-20-2019, 06:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Beautifulsoup doesn't scrape page (python 2.7) Hikki 0 2,025 Aug-01-2020, 05:54 PM
Last Post: Hikki
  use Xpath in Python :: libxml2 for a page-to-page skip-setting apollo 2 3,670 Mar-19-2020, 06:13 PM
Last Post: apollo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020