{"action":"closed","issue":{"url":"https://api.github.com/repos/oczkers/fut/issues/122","labels_url":"https://api.github.com/repos/oczkers/fut/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/oczkers/fut/issues/122/comments","events_url":"https://api.github.com/repos/oczkers/fut/issues/122/events","html_url":"https://github.com/oczkers/fut/issues/122","id":54214394,"number":122,"title":"LWPCookieJar is there any other option?","user":{"login":"mvillarejo","id":4228967,"avatar_url":"https://avatars.githubusercontent.com/u/4228967?v=3","gravatar_id":"","url":"https://api.github.com/users/mvillarejo","html_url":"https://github.com/mvillarejo","followers_url":"https://api.github.com/users/mvillarejo/followers","following_url":"https://api.github.com/users/mvillarejo/following{/other_user}","gists_url":"https://api.github.com/users/mvillarejo/gists{/gist_id}","starred_url":"https://api.github.com/users/mvillarejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvillarejo/subscriptions","organizations_url":"https://api.github.com/users/mvillarejo/orgs","repos_url":"https://api.github.com/users/mvillarejo/repos","events_url":"https://api.github.com/users/mvillarejo/events{/privacy}","received_events_url":"https://api.github.com/users/mvillarejo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-13T16:29:56Z","updated_at":"2015-02-02T02:19:24Z","closed_at":"2015-02-02T02:19:24Z","body":"Hello,\r\nThis might be a big out of scope but I'm wondering if you know more than I do about `requests` library.\r\nOne of the latest feature that the module has now is the load cookies option that works great now that security codes are mandatory.\r\nFor that load/save procedure @oczkers is using `LWPCookieJar`, so far so good but this type of object seems not to be 'pickable' and therefore... it can not be saved in a memcache instance (I'm using this to store the fut object and be able to call it from different programs).\r\nDefault cookieJar (`RequestsCookieJar`) was but this one seems not to be so... I was wondering if is there any other object (or any method) to make it 'pickable' so the changes I have to introduce are not too big.\r\nTrials:\r\n- tried other `CookieJar` objects: `MozillaCookieJar or FileCookieJar` but they seems to have the same issue.\r\n- tried to use previous save method: \r\n``` self.r.cookies = requests.utils.cookiejar_from_dict(pickle.load(f)) ```\r\nbut I got an error maybe because expired cookies are not removed:\r\n``` \r\n  File \"/sites/virtualenv/futbot/lib/python2.7/site-packages/fut/core.py\", line 174, in __login__\r\n    self.urls['login'] = self.r.get(self.urls['fut_home']).url\r\n     (...omitted...)\r\n    TooManyRedirects: Exceeded 30 redirects.\r\n```\r\nany ideas welcome!"}}