summaryrefslogtreecommitdiffstats
path: root/module/plugins/captcha/NetloadIn.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 02:23:37 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:13:41 +0200
commit48c0c42fd6faffc56432d5f037cd575979f180cc (patch)
treeb8a57137e10e201f77328dca45e2951ece123e53 /module/plugins/captcha/NetloadIn.py
parent[l18n] Improved few source strings (diff)
downloadpyload-48c0c42fd6faffc56432d5f037cd575979f180cc.tar.xz
Removed all @author flags + key attributes cleanup for internal & hooks plugins
Diffstat (limited to 'module/plugins/captcha/NetloadIn.py')
-rw-r--r--module/plugins/captcha/NetloadIn.py14
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')