Closed ashwinbala99 closed 1 year ago
See this method https://github.com/rmax/scrapy-redis/blob/master/src/scrapy_redis/spiders.py#L137
It already supports loading JSON data from redis as start urls.
I think you just need to push json-serialized data ({"url": ..., "meta": {"someid": ...}}
) to the <spidername>:start_urls
key in your redis instance.
@ashwinbala99 Just like @rmax said, just follow the tutorial, then you can send the requests with json-serialized data. Feel free to ask if you have any further questions :)
Hi,
Thank you for responding to my query promptly. I'll certainly reach out if I have any more questions regarding the usage of the library.
Regards Ashwin B
On Sun, Dec 11, 2022 at 5:00 PM Jeremy Chou @.***> wrote:
@ashwinbala99 https://github.com/ashwinbala99 Just like @rmax https://github.com/rmax said, just follow the tutorial https://github.com/rmax/scrapy-redis/wiki/Introduction, then you can send the requests with json-serialized data. Feel free to ask if you have any further questions :)
— Reply to this email directly, view it on GitHub https://github.com/rmax/scrapy-redis/issues/264#issuecomment-1345528391, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3U7I6Q2TZIYJKZRNTJIBHDWMW3MFANCNFSM6AAAAAASPN6KAI . You are receiving this because you were mentioned.Message ID: @.***>
For instance, my start_requests() takes other parameters in the form of a dictionary (refer to sample code)
What should I do to incorporate scrapy-redis in my project?