Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving/editing cookies?
#1
I'm scraping a site using Selenium but I find it slow. However, I believe it's possible to retrieve cookie information using Selenium and then proceed using Requests.

Is it possible to retrieve the cookie information once and then save it to a file so with future scraping I can omit the Selenium part and simply read in the cookie information?

If not, could I edit the cookie to determine what I need to access the site? I'm currently logging in but could omit the login if I could simply access the DB containing the information I'm downloading.

My guess is the answer is no but it's worth a shot. I know little of the web sites but Selenium seems to figure out what I need as it uses a browser.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python cookies vj78 2 3,125 Apr-07-2021, 09:38 AM
Last Post: Naheed
  Catch all cookies from any website Chuky 8 10,489 Aug-20-2019, 04:24 PM
Last Post: snippsat
  python scraping all cookies halberdd 1 4,861 Feb-26-2019, 12:10 PM
Last Post: halberdd
  Flask: Cookies for Saving User Input ? jomonetta 2 3,531 Nov-03-2018, 10:47 AM
Last Post: j.crater
  Inserting multiple cookies using python requests freshtomatoes 0 5,346 Aug-16-2018, 09:25 PM
Last Post: freshtomatoes
  Unable to load cookies with Pickle HiImNew 5 11,872 Jan-04-2018, 12:36 PM
Last Post: snippsat
  Missing cookies in session with requests sechot 0 6,292 Oct-22-2017, 12:09 PM
Last Post: sechot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020