diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-30 13:11:55 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-30 13:11:55 +0200 |
commit | 5ce2a1b305825da5bd1d13d77c38af21a0803141 (patch) | |
tree | 35069f4a078870ddbd151e1f4c2720aa392e4444 /captcha/NetloadIn.py | |
parent | rapidshare fix (diff) | |
download | pyload-5ce2a1b305825da5bd1d13d77c38af21a0803141.tar.xz |
little captcha improvements
Diffstat (limited to 'captcha/NetloadIn.py')
-rw-r--r-- | captcha/NetloadIn.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/captcha/NetloadIn.py b/captcha/NetloadIn.py index 94103f78b..9799a6a2b 100644 --- a/captcha/NetloadIn.py +++ b/captcha/NetloadIn.py @@ -10,8 +10,16 @@ class NetloadIn(OCR): self.clean(3) self.clean(3) self.run_tesser() + + self.correct({ + ("$", "g"): "5", + }) + return self.result_captcha if __name__ == '__main__': + import urllib ocr = NetloadIn() - print ocr.get_captcha('captchas/netload/captcha.php10.png') + urllib.urlretrieve("http://netload.in/share/includes/captcha.php", "captcha.png") + + print ocr.get_captcha('captcha.png') |