From f5a65922f5272c8cb5630d462725534e7d72d7db Mon Sep 17 00:00:00 2001 From: mkaay Date: Fri, 7 May 2010 15:39:28 +0200 Subject: better cookie handling, rapidshare fix --- module/plugins/accounts/RapidshareCom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/accounts') diff --git a/module/plugins/accounts/RapidshareCom.py b/module/plugins/accounts/RapidshareCom.py index bd1b944b3..f18fadd15 100644 --- a/module/plugins/accounts/RapidshareCom.py +++ b/module/plugins/accounts/RapidshareCom.py @@ -33,6 +33,6 @@ class RapidshareCom(Account): def login(self): for account in self.accounts: req = self.core.requestFactory.getRequest(self.__name__, account[0]) - html = req.load("http://ssl.rapidshare.com/cgi-bin/premiumzone.cgi", get={"login":account[0], "password":account[1]}, cookies=True) - with open("dump%s.html" % account[0], "w") as f: - f.write(html) + html = req.load("https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi", post={"login":account[0], "password":account[1], "uselandingpage":1}, cookies=True) + + -- cgit v1.2.3