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

Instance of 'RecipeSpider' has no 'state' member #1

Open
mikekenn opened this issue Jan 17, 2022 · 3 comments
Open

Instance of 'RecipeSpider' has no 'state' member #1

mikekenn opened this issue Jan 17, 2022 · 3 comments

Comments

@mikekenn
Copy link

I keep getting this error? What is the solution?

self.state['items_count'] = self.state.get('items_count', 0) + 1

@shaansubbaiah
Copy link
Owner

@mikekenn, I just tried the nutrient scraper, and I couldn't reproduce this issue. Have you followed the instructions in the README to run the scraper?

@mikekenn
Copy link
Author

Hi @shaansubbaiah

I have followed the instructions in the readme.
Does the architecture of device matter? I'm trying to run it on an macBook Pro with the M1 chip through VS Code.

@shaansubbaiah
Copy link
Owner

The error Instance of RecipeSpider' has no 'state' member is a Python issue, I don't think it is due to your laptop's architecture.

In the issue above, you have linked to a line in the nutrient list scraper, does the recipe scraper work?

Can you try to set it up again, cloning the repo -> installing scrapy pip install scrapy -> Running scrapy crawl recipes

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