Trying to set up beautifulsoup

72 views
Skip to first unread message

Joe Gamble

unread,
Dec 29, 2021, 10:23:11 AM12/29/21
to beautifulsoup
Hi everyone.
Could someone have a look at this and advise me on what is wrong.
It says beautifulsoup requirements satisfied, but cannot import beautifulsoup from bs4.
Screenshot 2021-12-29 144336.png

facelessuser

unread,
Dec 29, 2021, 11:00:08 AM12/29/21
to beautifulsoup

You need to import the BeautifulSoup class from bs4. beautifulsoup4 is not an importable object:

from bs4 import BeautifulSoup

Joe Gamble

unread,
Dec 29, 2021, 11:15:30 AM12/29/21
to beauti...@googlegroups.com
Thanks man.
Should have spotted the capital b.

--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beautifulsou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beautifulsoup/af46577e-d43f-4f47-a371-3c0f8cfa27c1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages