verginer / bnb_scrapy_tutorial

A tutorial on how to write a scrapy spider to get data from Airbnb
http://www.verginer.eu/blog/web-scraping-airbnb/
MIT License
29 stars 30 forks source link

bnbtutorial.items issue #5

Closed toxydose closed 7 years ago

toxydose commented 7 years ago

I just cloned your repo, but the script could not find the items

Traceback (most recent call last): File "bnbspider.py", line 4, in from bnbtutorial.items import BnbtutorialItem ImportError: No module named bnbtutorial.items

verginer commented 7 years ago

Thanks, the tip has been very helpful! 👍

toxydose commented 7 years ago

The issue appears again. Maybe I am doing something incorrect?

verginer commented 7 years ago

How do you call scrapy? In which directory are you when you execute the command? Did you clone the repo or did you write it yourself?

toxydose commented 7 years ago

I cloned the repo. cd bnb_scrapy_tutorial/bnbtutorial/spiders/ python bnbspider.py

verginer commented 7 years ago

No you don't execute it like that. If you have a look at the blog post I link to in the readme http://www.verginer.eu/blog/web-scraping-airbnb/ you will see how to correctly start scrapy

toxydose commented 7 years ago

@verginer thank you for your feedback!