diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-09 13:05:38 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-09 13:05:38 +0200 |
commit | 63d747c7c9ff2d6753cee22faa18d14f7d148428 (patch) | |
tree | 1ea729a1feeb0f3f38e806404e69b04b21e49bf4 /module/plugins/accounts/NetloadIn.py | |
parent | merge (diff) | |
download | pyload-63d747c7c9ff2d6753cee22faa18d14f7d148428.tar.xz |
netload premium
Diffstat (limited to 'module/plugins/accounts/NetloadIn.py')
-rw-r--r-- | module/plugins/accounts/NetloadIn.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/module/plugins/accounts/NetloadIn.py b/module/plugins/accounts/NetloadIn.py new file mode 100644 index 000000000..95e77a9cb --- /dev/null +++ b/module/plugins/accounts/NetloadIn.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- + +""" + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, + or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, see <http://www.gnu.org/licenses/>. + + @author: mkaay +""" + +from module.plugins.Account import Account +import re +from time import strptime, mktime + +class NetloadIn(Account): + __name__ = "NetloadIn" + __version__ = "0.1" + __type__ = "account" + __description__ = """netload.in account plugin""" + __author_name__ = ("RaNaN") + __author_mail__ = ("RaNaN@pyload.org") + + def login(self): + for user, data in self.accounts.items(): + req = self.core.requestFactory.getRequest(self.__name__, user) + req.load("http://netload.in/index.php", None, { "txtuser" : user, "txtpass" : data['password'], "txtcheck" : "login", "txtlogin" : ""}, cookies=True) +
\ No newline at end of file |