Advanced Multi-URL Crawling with authentication first : is it possible ? #937
Unanswered
ochaoui
asked this question in
Forums - Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I am writing a script that scraps a website. But before doing it, I have to authenticate, get the urls I want then do a multi-crawling.
As you can see, I added the hook on_page_context_created that handles the connection (it works I tested it in a single url scrap).
The problem with this implementation is that crawl4ai tries to authenticate for all the calls even if apparently they share all the same context.
For example I sent 3 urls, the first worked because it did the authentication. But for the other, it tries also to do the authentication but it fails because the goto page goes directly to the requested page.
Is there a way for the Multi-URL to make the authentication once for all the calls ?
Thanks in advance !
Beta Was this translation helpful? Give feedback.
All reactions