diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-07-20 03:26:43 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-20 03:26:43 +0200 |
commit | cedfbde86de423b8f004299af9f8ab60606cb790 (patch) | |
tree | 584e0b614a1635b278a9a13702fe642bc4ceb14c | |
parent | Fix and improve 5060e4c6374a5116d0d8b02528f910f8c5f8bcf9 (diff) | |
download | pyload-cedfbde86de423b8f004299af9f8ab60606cb790.tar.xz |
Remove testcodes in captcha plugins
-rw-r--r-- | module/plugins/captcha/GigasizeCom.py | 8 | ||||
-rw-r--r-- | module/plugins/captcha/LinksaveIn.py | 9 | ||||
-rw-r--r-- | module/plugins/captcha/NetloadIn.py | 8 | ||||
-rw-r--r-- | module/plugins/captcha/ShareonlineBiz.py | 25 |
4 files changed, 0 insertions, 50 deletions
diff --git a/module/plugins/captcha/GigasizeCom.py b/module/plugins/captcha/GigasizeCom.py index d5bcacc5a..1f77e420d 100644 --- a/module/plugins/captcha/GigasizeCom.py +++ b/module/plugins/captcha/GigasizeCom.py @@ -21,11 +21,3 @@ class GigasizeCom(OCR): self.threshold(2.8) self.run_tesser(True, False, False, True) return self.result_captcha - - -if __name__ == '__main__': - import urllib - - ocr = GigasizeCom() - urllib.urlretrieve('http://www.gigasize.com/randomImage.php', "gigasize_tmp.jpg") - print ocr.get_captcha('gigasize_tmp.jpg') diff --git a/module/plugins/captcha/LinksaveIn.py b/module/plugins/captcha/LinksaveIn.py index 12879db1f..da36cf552 100644 --- a/module/plugins/captcha/LinksaveIn.py +++ b/module/plugins/captcha/LinksaveIn.py @@ -147,12 +147,3 @@ class LinksaveIn(OCR): final += self.result_captcha return final - - -if __name__ == '__main__': - import urllib - - ocr = LinksaveIn() - testurl = "http://linksave.in/captcha/cap.php?hsh=2229185&code=ZzHdhl3UffV3lXTH5U4b7nShXj%2Bwma1vyoNBcbc6lcc%3D" - urllib.urlretrieve(testurl, ocr.data_dir+"captcha.gif") - print ocr.get_captcha(ocr.data_dir+'captcha.gif') diff --git a/module/plugins/captcha/NetloadIn.py b/module/plugins/captcha/NetloadIn.py index 9fb3b5c31..4585b51df 100644 --- a/module/plugins/captcha/NetloadIn.py +++ b/module/plugins/captcha/NetloadIn.py @@ -26,11 +26,3 @@ class NetloadIn(OCR): self.result_captcha = self.result_captcha.replace(" ", "")[:4] # cut to 4 numbers 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') diff --git a/module/plugins/captcha/ShareonlineBiz.py b/module/plugins/captcha/ShareonlineBiz.py index 73ec4a7e0..44ea6a187 100644 --- a/module/plugins/captcha/ShareonlineBiz.py +++ b/module/plugins/captcha/ShareonlineBiz.py @@ -1,21 +1,4 @@ # -*- coding: utf-8 -*- -# -#Copyright (C) 2009 kingzero, RaNaN -# -#This program is free software; you can redistribute it and/or modify -#it under the terms of the GNU General Public License as published by -#the Free Software Foundation; either version 3 of the License, -#or (at your option) any later version. -# -#This program is distributed in the hope that it will be useful, -#but WITHOUT ANY WARRANTY; without even the implied warranty of -#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#See the GNU General Public License for more details. -# -#You should have received a copy of the GNU General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. -# -### from captcha import OCR @@ -53,11 +36,3 @@ class ShareonlineBiz(OCR): return final #tesseract at 60% - - -if __name__ == '__main__': - import urllib - - ocr = ShareonlineBiz() - urllib.urlretrieve("http://www.share-online.biz/captcha.php", "captcha.jpeg") - print ocr.get_captcha('captcha.jpeg') |