I need Selenium for javascript work.
First I login using Scrapy FormRequest
and then I need to open the response.url
with Selenium.
The problem is that Selenium does not have the cookies so It opens the login page.
Does anyone know how can I pass the cookies from scrapy to selenium?
Since you haven't provided any code you've written so far, I'll just refer you.
In order to get cookies from Scrapy take a look at
scrapy.http.cookies.CookieJar
andextract_cookie
method (see Scrapy - how to manage cookies/sessions).In order to set cookies for selenium driver, see add_cookie method.
Also see: