Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(62)  |  Call(62)  |  Derive(0)  |  Import(0)

src/p/y/pyload-HEAD/module/plugins/hoster/XFileSharingPro.py   pyload(Download)
            self.html = self.load(action, post=inputs)
        elif inputs['st'] == 'Can not leech file':
            self.retry(max_tries=20, wait_time=3 * 60, reason=inputs['st'])
        else:
            self.fail(inputs['st'])
            self.startDownload(self.pyfile.url)
        else:
            self.retry()
 
    def startDownload(self, link):
            elif 'limit' in self.errmsg:
                self.wait(1 * 60 * 60, True)
                self.retry(25)
            elif 'countdown' in self.errmsg or 'Expired' in self.errmsg:
                self.retry()
                if not inputs:
                    if self.errmsg:
                        self.retry()
                    else:
                        self.parseError("Form not found")

src/p/y/pyload-HEAD/module/plugins/hoster/MegasharesCom.py   pyload(Download)
    def handleFree(self):
        self.html = self.load(self.pyfile.url, decode=True)
 
        if self.NO_SLOTS_PATTERN in self.html:
            self.retry(wait_time=5 * 60)
                if 'Thank you for reactivating your passport.' in response:
                    self.correctCaptcha()
                    self.retry()
                else:
                    self.invalidCaptcha()
            found = re.search(self.PASSPORT_RENEW_PATTERN, self.html)
            renew = found.group(1) + found.group(2) + found.group(3) * 60 * 60 if found else 10 * 60
            self.retry(max_tries=15, wait_time=renew, reason="Unable to get passport")
 
        self.handleDownload(False)

src/p/y/pyload-HEAD/module/plugins/hoster/UploadingCom.py   pyload(Download)
            self.pyfile.error = found.group(1)
            self.logWarning(self.pyfile.error)
            self.retry(max_tries=6, wait_time=6 * 60 * 60 if found.group(2) else 15 * 60, reason=self.pyfile.error)
 
        ajax_url = "http://uploading.com/files/get/?ajax"

src/p/y/pyload-HEAD/module/plugins/hoster/FastshareCz.py   pyload(Download)
    def handleFree(self):
        if "> 100% of FREE slots are full" in self.html:
            self.retry(120, 60, "No free slots")
 
        found = re.search(self.FREE_URL_PATTERN, self.html)
 
        if check == "paralell_dl":
            self.retry(6, 10 * 60, "Paralell download")
        elif check == "wrong_captcha":
            self.retry(max_tries=5, reason="Wrong captcha")

src/p/y/pyload-HEAD/module/plugins/hoster/FilefactoryCom.py   pyload(Download)
            self.fail("File too large for free download")
        elif "All free download slots on this server are currently in use" in self.html:
            self.retry(50, 15 * 60, "All free slots are busy")
 
        m = re.search(r'data-href-direct="(http://[^"]+)"', self.html)
        if check == "multiple":
            self.logDebug("Parallel downloads detected; waiting 15 minutes")
            self.retry(wait_time=15 * 60, reason="Parallel downloads")
        elif check == "error":
            self.fail("Unknown error")

src/p/y/pyload-HEAD/module/plugins/hoster/ShareRapidCom.py   pyload(Download)
        except BadHeader, e:
            self.account.relogin(self.user)
            self.retry(max_tries=3, reason=str(e))
 
        self.getFileInfo()
            if re.search(self.ERR_LOGIN_PATTERN, self.html):
                self.relogin(self.user)
                self.retry(max_tries=3, reason="User login failed")
            elif re.search(self.ERR_CREDIT_PATTERN, self.html):
                self.fail("Not enough credit left")

src/p/y/pyload-HEAD/module/plugins/hoster/SockshareCom.py   pyload(Download)
        if (">You have exceeded the daily stream limit for your country\\. You can wait until tomorrow" in self.html or
            "(>This content server has been temporarily disabled for upgrades|Try again soon\\. You can still download it below\\.<)" in self.html):
            self.retry(wait_time=60 * 60 * 2, reason="Download limit exceeded or server disabled")  # 2 hours wait
 
        patterns = (r'(/get_file\.php\?id=[A-Z0-9]+&key=[a-zA-Z0-9=]+&original=1)',

src/p/y/pyload-HEAD/module/plugins/hoster/DepositfilesCom.py   pyload(Download)
            self.logInfo("DepositFiles.com: The file is being checked. Waiting 1 minute.")
            self.wait(61)
            self.retry()
 
        wait = re.search(r'html_download_api-limit_interval\">(\d+)</span>', self.html)
        if wait:
            wait_time = int(wait.group(1))
            self.logInfo("%s: Traffic used up. Waiting %d seconds." % (self.__name__, wait_time))
            self.wait(wait_time, True)
            self.retry()
        found = re.search(r"var fid = '(\w+)';", self.html)
        if not found:
            self.retry(wait_time=5)
        params = {'fid': found.group(1)}
        self.logDebug("FID: %s" % params['fid'])
            self.download(link, disposition=True)
        except:
            self.retry(wait_time=60)
 
    def handlePremium(self):
        if '<span class="html_download_api-gold_traffic_limit">' in self.html:
            self.logWarning("Download limit reached")
            self.retry(25, 60 * 60, "Download limit reached")

src/p/y/pyload-HEAD/module/plugins/hoster/UlozTo.py   pyload(Download)
            #self.delStorage("captcha_text")
            self.invalidCaptcha()
            self.retry(reason="Wrong captcha code")
        elif check == "offline":
            self.offline()
            self.multiDL = False
            self.wait(1 * 60 * 60, True)
            self.retry()
        elif check == "not_found":
            self.fail("Server error - file not downloadable")

src/p/y/pyload-HEAD/module/plugins/hoster/FshareVn.py   pyload(Download)
            wait_until = mktime(strptime(found.group(1), "%d/%m/%Y %H:%M"))
            self.wait(wait_until - mktime(gmtime()) - 7 * 60 * 60, True)
            self.retry()
        elif '<ul class="message-error">' in self.html:
            self.logError("Unknown error occured or wait time not parsed")
            self.retry(30, 2 * 60, "Unknown error")

  1 | 2 | 3 | 4  Next