summaryrefslogtreecommitdiffstats
path: root/module/plugins/captcha/GigasizeCom.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/GigasizeCom.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/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')