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

can't get the data when I run the spider #5

Open
amelnait opened this issue Jun 26, 2024 · 1 comment
Open

can't get the data when I run the spider #5

amelnait opened this issue Jun 26, 2024 · 1 comment

Comments

@amelnait
Copy link

Hello,
I run the code and followed the instructions as mentionned in the readme.md, but I got this result when I run this command : scrapy crawl amazon_search_product :

2024-06-26 14:15:05 [scrapy.statscollectors] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 326,
'downloader/request_count': 1,
'downloader/request_method_count/GET': 1,
'downloader/response_bytes': 457,
'downloader/response_count': 1,
'downloader/response_status_count/403': 1,
'elapsed_time_seconds': 1.994968,
'feedexport/success_count/FileFeedStorage': 1,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2024, 6, 26, 12, 15, 5, 225176, tzinfo=datetime.timezone.utc),
'httpcompression/response_bytes': 291,
'httpcompression/response_count': 1,
'log_count/INFO': 11,
'log_count/WARNING': 1,
'response_received_count': 1,
'scheduler/dequeued': 2,
'scheduler/dequeued/memory': 2,
'scheduler/enqueued': 2,
'scheduler/enqueued/memory': 2,
'start_time': datetime.datetime(2024, 6, 26, 12, 15, 3, 230208, tzinfo=datetime.timezone.utc)}
2024-06-26 14:15:05 [scrapy.core.engine] INFO: Spider closed (finished)

When I tried to store the output in a json file I get an empty array on it.
Do you know how to solve this ?

@Wadprog
Copy link

Wadprog commented Jun 27, 2024

It seems like you are not searching for any products, I was able to reproduce the same issue by passing an empty keyword_list = ['']

empty_list

However, as soon as I added a search term such as Ipad it worked
`

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