diff options
Diffstat (limited to 'module/plugins/captcha/NetloadIn.py')
-rw-r--r-- | module/plugins/captcha/NetloadIn.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/module/plugins/captcha/NetloadIn.py b/module/plugins/captcha/NetloadIn.py index 733fe99db..9fb3b5c31 100644 --- a/module/plugins/captcha/NetloadIn.py +++ b/module/plugins/captcha/NetloadIn.py @@ -2,8 +2,17 @@ from captcha import OCR + class NetloadIn(OCR): __name__ = "NetloadIn" + __version__ = "0.1" + __type__ = "ocr" + + __description__ = """Netload.in ocr plugin""" + __author_name__ = "pyLoad Team" + __author_mail__ = "admin@pyload.org" + + def __init__(self): OCR.__init__(self) @@ -18,9 +27,10 @@ class NetloadIn(OCR): return self.result_captcha + if __name__ == '__main__': import urllib + ocr = NetloadIn() urllib.urlretrieve("http://netload.in/share/includes/captcha.php", "captcha.png") - - print ocr.get_captcha('captcha.png') + print ocr.get_captcha('captcha.png') |