[Python] I can't get the full html page out of BeautifulSoup in Python

Discussão em 'Python' iniciado por Stack, Março 7, 2025.

  1. Stack

    Stack Membro Participativo

    from bs4 import BeautifulSoup import requests

    url = 'https://www.scrapethissite.com/pages/forms/'

    resp = requests.get(url)

    resp_html = BeautifulSoup(resp.content, 'html.parser') print(resp_html)

    This is my code I was watching this tutorial below: https://www.youtube.com/watch?v=bargNl2WeN4&list=PLUaB-1hjhk8FE_XZ87vPPSfHqb6OcM0cF&index=54

    In the tutorial it worked perfectly, it got the full html page but when i was trying i couldn't get the entire page with the above code.. i tried with selenium and also with different parsers like 'lxml' and 'html5lib' nothing worked..

    anyone can help?

    Continue reading...

Compartilhe esta Página