summaryrefslogtreecommitdiffstats
path: root/module/plugins/captcha/GigasizeCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/captcha/GigasizeCom.py')
-rw-r--r--module/plugins/captcha/GigasizeCom.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/module/plugins/captcha/GigasizeCom.py b/module/plugins/captcha/GigasizeCom.py
index 2d0837257..d5bcacc5a 100644
--- a/module/plugins/captcha/GigasizeCom.py
+++ b/module/plugins/captcha/GigasizeCom.py
@@ -2,7 +2,17 @@
from captcha import OCR
+
class GigasizeCom(OCR):
+ __name__ = "GigasizeCom"
+ __version__ = "0.1"
+ __type__ = "ocr"
+
+ __description__ = """Gigasize.com ocr plugin"""
+ __author_name__ = "pyLoad Team"
+ __author_mail__ = "admin@pyload.org"
+
+
def __init__(self):
OCR.__init__(self)
@@ -12,9 +22,10 @@ class GigasizeCom(OCR):
self.run_tesser(True, False, False, True)
return self.result_captcha
+
if __name__ == '__main__':
- ocr = GigasizeCom()
import urllib
- urllib.urlretrieve('http://www.gigasize.com/randomImage.php', "gigasize_tmp.jpg")
+ ocr = GigasizeCom()
+ urllib.urlretrieve('http://www.gigasize.com/randomImage.php', "gigasize_tmp.jpg")
print ocr.get_captcha('gigasize_tmp.jpg')