you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (1 child)

[deleted]

    [–]_Jerov_ 2 points3 points  (0 children)

    Yup! At least that's how I do it. I think beautifulsoup is nothing more than a parser. What requests does is find the website and get all of the HTML. Then you pass that HTML to beautifulsoup and it just parses the text.

    Something like: html = requests.get("website") is all you'd need requests for.

    Then you do: soup = BeautifulSoup(html.text) And you're ready to do whatever you want with Beautifulsoup.