Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beautiful soup #42

Closed
toptuto opened this issue Oct 31, 2019 · 3 comments
Closed

Beautiful soup #42

toptuto opened this issue Oct 31, 2019 · 3 comments

Comments

@toptuto
Copy link

toptuto commented Oct 31, 2019

I have a problem :
Traceback (most recent call last):
File "xsser", line 22, in
from core.main import xsser
File "/root/xsser/core/main.py", line 38, in
from core.crawler import Crawler
File "/root/xsser/core/crawler.py", line 33, in
from BeautifulSoup import BeautifulSoup
ImportError: No module named BeautifulSoup

I changed crawler.py from BeautifulSoup to bs4 but the problem still there , any idea ? Thanks

@epsylon
Copy link
Owner

epsylon commented Oct 31, 2019

ImportError: No module named BeautifulSoup

https://stackoverflow.com/questions/5663980/importerror-no-module-named-beautifulsoup

To be sure that you have bs4 correctly set at your system, check also that you have this other related libs:

  • python-beautifulsoup
  • python-bs4
  • pypy-bs4

sudo apt-get install python-beautifulsoup python-bs4 pypy-bs4

Also you can try to use pip:

pip install bs4

@toptuto
Copy link
Author

toptuto commented Oct 31, 2019

my have already check my system :
root@kali:~/xsser# sudo apt-get install python-bs4
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-bs4 is already the newest version (4.8.0-2).

@toptuto
Copy link
Author

toptuto commented Oct 31, 2019

ok I got it , thanks

@toptuto toptuto closed this as completed Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants