Hi everyone! π
Hi everyone! π
Iβm working with Crawlee and was wondering:
Is there a way to enqueue links so that instead of sending a GET request, it sends a POST request with a body (and any other necessary information)?
My goal is to scrape data from a GraphQL API. Iβm not sure if Crawlee is the best tool for this task. Does anyone have suggestions on how to automate this process smoothly? Specifically:
- Handling multiple requests efficiently
- Managing proxies
- Any best practices or recommendations for working with GraphQL APIs?
Thanks in advance for your help! π
4 Replies
harsh-harlequinβ’4mo ago
Of course, you can enqueue post requests with payload. Just set
useExtendedUniqueKey
to true
otherwise requestQueue will deduplicate the requests with the same url.deep-jadeβ’4mo ago
where do i set this parameter? in the enqueueLinks method?
harsh-harlequinβ’4mo ago
I think it is possible in enqueueLinks also but you will have more control with enqueing urls like this
deep-jadeβ’4mo ago
thanks ill try that!