I want to get some data from the site, which requires a login.
I log in using queries
url = "http://example.com" response = requests.get(url, {"email":" a@gmail.com ", "password":"12345"}) cookies = response.cookies
Then I want to get data from some JS page. This is not possible through queries , so I need to use dryscrape for this.
import dryscrape url = "http://example.com/js-page" sess = dryscrape.Session() sess.visit(url)
Is it possible to pass cookies to visit () or do I need to look for another solution?
source share