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

All Samples(22)  |  Call(12)  |  Derive(0)  |  Import(10)

src/p/y/pyload-HEAD/module/plugins/hoster/UploadedTo.py   pyload(Download)
from time import sleep
 
from module.utils import html_unescape, parseFileSize
 
from module.plugins.Hoster import Hoster
        found = re.search(self.FILE_INFO_PATTERN, html)
        if found:
            name, fileid = html_unescape(found.group('N')), found.group('ID')
            size = parseFileSize(found.group('S'))
            status = 2
        for data in api.itervalues():
            if data[0] == "online":
                result.append((html_unescape(data[2]), data[1], 2, data[4]))
 
            elif data[0] == "offline":
                self.offline()
 
            pyfile.name = html_unescape(self.data[2])
 
        # pyfile.name = self.get_file_name()

src/p/y/pyload-HEAD/module/plugins/internal/SimpleHoster.py   pyload(Download)
 
from module.plugins.Hoster import Hoster
from module.utils import html_unescape, fixup, parseFileSize
from module.network.RequestFactory import getURL
from module.network.CookieJar import CookieJar
            self.pyfile.name = name
        else:
            self.pyfile.name = html_unescape(urlparse(self.pyfile.url).path.split("/")[-1])
 
        if size:

src/p/y/pyload-HEAD/module/plugins/hoster/BasePlugin.py   pyload(Download)
from module.network.HTTPRequest import BadHeader
from module.plugins.Hoster import Hoster
from module.utils import html_unescape, remove_chars
 
 
                break
 
        name = html_unescape(unquote(urlparse(url).path.split("/")[-1]))
 
        if 'content-disposition' in header:

src/p/y/pyload-HEAD/module/plugins/hoster/XFileSharingPro.py   pyload(Download)
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, PluginParseError, replace_patterns
from module.plugins.internal.CaptchaService import ReCaptcha, SolveMedia
from module.utils import html_unescape
from module.network.RequestFactory import getURL
 
 
            if not self.file_info:
                pyfile.name = html_unescape(unquote(urlparse(
                    self.location if self.location else pyfile.url).path.split("/")[-1]))
 
                    captcha_div = found.group(1)
                    self.logDebug(captcha_div)
                    numerals = re.findall(r'<span.*?padding-left\s*:\s*(\d+).*?>(\d)</span>', html_unescape(captcha_div))
                    inputs['code'] = "".join([a[1] for a in sorted(numerals, key=lambda num: int(num[0]))])
                    self.logDebug("CAPTCHA", inputs['code'], numerals)

src/p/y/pyload-HEAD/module/plugins/internal/SimpleCrypter.py   pyload(Download)
 
from module.plugins.Crypter import Crypter
from module.utils import html_unescape
from module.plugins.internal.SimpleHoster import replace_patterns
 
    def getPackageNameAndFolder(self):
        if hasattr(self, 'TITLE_PATTERN'):
            m = re.search(self.TITLE_PATTERN, self.html)
            if m:
                name = folder = html_unescape(m.group('title').strip())

src/p/y/pyload-HEAD/module/plugins/hoster/YoutubeCom.py   pyload(Download)
from urllib import unquote
 
from module.utils import html_unescape
from module.plugins.Hoster import Hoster
 
        name = name.encode('ascii', 'replace')
 
        pyfile.name = html_unescape(name)
 
        time = re.search(r"t=((\d+)m)?(\d+)s", pyfile.url)

src/p/y/pyload-HEAD/module/plugins/hoster/WarserverCz.py   pyload(Download)
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
from module.network.HTTPRequest import BadHeader
from module.utils import html_unescape
 
 
    def handlePremium(self):
        found = re.search(self.PREMIUM_URL_PATTERN, self.html)
        if not found:
            self.parseError("Premium URL")
        url = html_unescape(found.group(1))

src/p/y/pyload-HEAD/module/plugins/hoster/UptoboxCom.py   pyload(Download)
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
from module.plugins.internal.CaptchaService import ReCaptcha, SolveMedia
from module.utils import html_unescape
 
 
                    self.logDebug(captcha_div)
                    numerals = re.findall(r'<span.*?padding-left\s*:\s*(\d+).*?>(\d)</span>',
                                          html_unescape(captcha_div))
                    inputs['code'] = "".join([a[1] for a in sorted(numerals, key=lambda num: int(num[0]))])
                    self.logDebug("CAPTCHA", inputs['code'], numerals)

src/p/y/pyload-HEAD/module/plugins/hoster/RarefileNet.py   pyload(Download)
 
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
from module.utils import html_unescape
 
 
    def handleCaptcha(self, inputs):
        captcha_div = re.search(r'<b>Enter code.*?<div.*?>(.*?)</div>', self.html, re.S).group(1)
        self.logDebug(captcha_div)
        numerals = re.findall('<span.*?padding-left\s*:\s*(\d+).*?>(\d)</span>', html_unescape(captcha_div))
        inputs['code'] = "".join([a[1] for a in sorted(numerals, key=lambda num: int(num[0]))])

src/p/y/pyload-HEAD/module/unescape.py   pyload(Download)
from module.utils import html_unescape
#deprecated
unescape = html_unescape