{"action":"created","issue":{"url":"https://api.github.com/repos/BenoitZugmeyer/addic7ed-cli/issues/17","labels_url":"https://api.github.com/repos/BenoitZugmeyer/addic7ed-cli/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/BenoitZugmeyer/addic7ed-cli/issues/17/comments","events_url":"https://api.github.com/repos/BenoitZugmeyer/addic7ed-cli/issues/17/events","html_url":"https://github.com/BenoitZugmeyer/addic7ed-cli/issues/17","id":58118112,"number":17,"title":"Login to avoid download limit","user":{"login":"soyuka","id":1321971,"avatar_url":"https://avatars.githubusercontent.com/u/1321971?v=3","gravatar_id":"","url":"https://api.github.com/users/soyuka","html_url":"https://github.com/soyuka","followers_url":"https://api.github.com/users/soyuka/followers","following_url":"https://api.github.com/users/soyuka/following{/other_user}","gists_url":"https://api.github.com/users/soyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/soyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyuka/subscriptions","organizations_url":"https://api.github.com/users/soyuka/orgs","repos_url":"https://api.github.com/users/soyuka/repos","events_url":"https://api.github.com/users/soyuka/events{/privacy}","received_events_url":"https://api.github.com/users/soyuka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-18T19:49:07Z","updated_at":"2015-02-18T20:48:28Z","closed_at":null,"body":"Hi,\r\n\r\nToday I had this error:\r\n```\r\nFatal error: Daily Download count exceeded.\r\n```\r\n\r\nWould it be possible to add addic7ed username/password so that the script use my account to download subs?"},"comment":{"url":"https://api.github.com/repos/BenoitZugmeyer/addic7ed-cli/issues/comments/74944748","html_url":"https://github.com/BenoitZugmeyer/addic7ed-cli/issues/17#issuecomment-74944748","issue_url":"https://api.github.com/repos/BenoitZugmeyer/addic7ed-cli/issues/17","id":74944748,"user":{"login":"JoelSjogren","id":4519557,"avatar_url":"https://avatars.githubusercontent.com/u/4519557?v=3","gravatar_id":"","url":"https://api.github.com/users/JoelSjogren","html_url":"https://github.com/JoelSjogren","followers_url":"https://api.github.com/users/JoelSjogren/followers","following_url":"https://api.github.com/users/JoelSjogren/following{/other_user}","gists_url":"https://api.github.com/users/JoelSjogren/gists{/gist_id}","starred_url":"https://api.github.com/users/JoelSjogren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoelSjogren/subscriptions","organizations_url":"https://api.github.com/users/JoelSjogren/orgs","repos_url":"https://api.github.com/users/JoelSjogren/repos","events_url":"https://api.github.com/users/JoelSjogren/events{/privacy}","received_events_url":"https://api.github.com/users/JoelSjogren/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T20:48:28Z","updated_at":"2015-02-18T20:48:28Z","body":"I have done some research and it is possible to login using python.\r\n\r\n    import cookielib\r\n    import urllib\r\n    import urllib2\r\n\r\n    url = 'http://www.addic7ed.com/dologin.php'\r\n    values = {'username' : 'JoelSjogren',\r\n              'password' : 'thisisnotmypassword' }\r\n\r\n    data = urllib.urlencode(values)\r\n    cookies = cookielib.CookieJar()\r\n\r\n    opener = urllib2.build_opener(\r\n        urllib2.HTTPRedirectHandler(),\r\n        urllib2.HTTPHandler(debuglevel=0),\r\n        urllib2.HTTPSHandler(debuglevel=0),\r\n        urllib2.HTTPCookieProcessor(cookies))\r\n\r\n    response = opener.open(url, data)\r\n    the_page = response.read()\r\n    http_headers = response.info()\r\n    # The login cookies should be contained in the cookies variable\r\n\r\nAfter that it was possible so visit http://www.addic7ed.com/panel.php using\r\n\r\n    response2 = opener.open('http://www.addic7ed.com/panel.php', data)\r\n    the_page2 = response2.read()\r\n\r\nand I could see my username in `the_page2` so I was still logged in."}}