What am I? doing wrong here?
Thank you in advance!
The BS4 directory is not in a sub-directory where your python source code is. I had this error as well - Here is a screenshot of where the bs4 directory must be. I’m running the spider.py file using the command: python3 spider.py
So instead of “from bs4” i need to put “from spdump.py”?
No your code is correct - the bs4 folder is not in the correct place. It needs to be in the same folder as the source code. For instance, my source code (spider.py) sits in Documents/Studies/py4e/pagerank/
And the bs4 folder sits in Documents/Studies/py4e/pagerank/bs4
Hope this helps
Got it thank you!
Start a new conversation!
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.
Coursera provides universal access to the world’s best education, partnering with top universities and organizations to offer courses online.
© 2020 Coursera Inc. All rights reserved.