Skip to content

How to make additional request inside addHandler() function? #1567

Answered by B4nan
shinebayar-g asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the sendRequest contextual helper, it will use got-scraping to run the request and respect all the crawler options like proxy configuration. By default it uses the currently processed request options, but you can override them, e.g. override just the URL (or maybe method and payload too):

https://crawlee.dev/docs/guides/got-scraping

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shinebayar-g
Comment options

Answer selected by shinebayar-g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants