Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to load cookies with Pickle
#2
Seems like it open file and not closing file.
When you open a file. You must close it to save it.
If you don't close file. It a memory leak.

with open('cookies.pkl'.'rb') as cookie_file: # with auto close file.
    cookies = pickle.load(cookie_file)
99 percent of computer problems exists between chair and keyboard.
Reply


Messages In This Thread
Unable to load cookies with Pickle - by HiImNew - Jan-04-2018, 01:30 AM
RE: Unable to load cookies with Pickle - by Windspar - Jan-04-2018, 02:25 AM
RE: Unable to load cookies with Pickle - by HiImNew - Jan-04-2018, 02:44 AM
RE: Unable to load cookies with Pickle - by HiImNew - Jan-04-2018, 03:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Saving/editing cookies? rhubarbpieguy 0 923 Dec-10-2022, 01:58 PM
Last Post: rhubarbpieguy
  Python cookies vj78 2 3,130 Apr-07-2021, 09:38 AM
Last Post: Naheed
  Catch all cookies from any website Chuky 8 10,522 Aug-20-2019, 04:24 PM
Last Post: snippsat
  python scraping all cookies halberdd 1 4,870 Feb-26-2019, 12:10 PM
Last Post: halberdd
  Flask: Cookies for Saving User Input ? jomonetta 2 3,542 Nov-03-2018, 10:47 AM
Last Post: j.crater
  Inserting multiple cookies using python requests freshtomatoes 0 5,355 Aug-16-2018, 09:25 PM
Last Post: freshtomatoes
  unable to load file using python selenium purnima1 4 6,560 Dec-12-2017, 04:04 PM
Last Post: hshivaraj
  Missing cookies in session with requests sechot 0 6,298 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