• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python XFileSharingPro.create_getInfo函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中module.plugins.hoster.XFileSharingPro.create_getInfo函数的典型用法代码示例。如果您正苦于以下问题:Python create_getInfo函数的具体用法?Python create_getInfo怎么用?Python create_getInfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了create_getInfo函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: VidPlayNet

# -*- coding: utf-8 -*-

# Test links:
# BigBuckBunny_320x180.mp4 - 61.7 Mb - http://vidplay.net/38lkev0h3jv0

from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class VidPlayNet(XFileSharingPro):
    __name__ = "VidPlayNet"
    __type__ = "hoster"
    __pattern__ = r'https?://(?:www\.)?vidplay\.net/\w{12}'
    __version__ = "0.01"
    __description__ = """VidPlay.net hoster plugin"""
    __author_name__ = "t4skforce"
    __author_mail__ = "t4skforce1337[AT]gmail[DOT]com"

    HOSTER_NAME = "vidplay.net"

    FILE_OFFLINE_PATTERN = r'<b>File Not Found</b><br>\s*<br>'
    FILE_NAME_PATTERN = r'<b>Password:</b></div>\s*<h[1-6]>(?P<N>[^<]+)</h[1-6]>'
    DIRECT_LINK_PATTERN = r'(http://([^/]*?%s|\d+\.\d+\.\d+\.\d+)(:\d+)?(/d/|(?:/files)?/\d+/\w+/)[^"\'<&]+)' % HOSTER_NAME


getInfo = create_getInfo(VidPlayNet)
开发者ID:3DMeny,项目名称:pyload,代码行数:25,代码来源:VidPlayNet.py


示例2: FilerioCom

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class FilerioCom(XFileSharingPro):
    __name__ = "FilerioCom"
    __type__ = "hoster"
    __pattern__ = r"http://(?:\w*\.)*(filerio\.(in|com)|filekeen\.com)/\w{12}"
    __version__ = "0.02"
    __description__ = """FileRio.in hoster plugin"""
    __author_name__ = ("zoidberg")
    __author_mail__ = ("[email protected]")

    FILE_OFFLINE_PATTERN = '<b>&quot;File Not Found&quot;</b>|File has been removed due to Copyright Claim'
    HOSTER_NAME = "filerio.in"
    FILE_URL_REPLACEMENTS = [(r'http://.*?/', 'http://filerio.in/')]

    def setup(self):
        self.resumeDownload = self.multiDL = self.premium


getInfo = create_getInfo(FilerioCom)
开发者ID:BlackSmith,项目名称:pyload,代码行数:22,代码来源:FilerioCom.py


示例3: UptoboxCom

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo

class UptoboxCom(XFileSharingPro):
    __name__ = "UptoboxCom"
    __type__ = "hoster"
    __pattern__ = r"http://(?:\w*\.)*?uptobox.com/\w{12}"
    __version__ = "0.06"
    __description__ = """Uptobox.com hoster plugin"""
    __author_name__ = ("zoidberg")
    __author_mail__ = ("[email protected]")
    
    FILE_INFO_PATTERN = r'<h2>\s*Download File\s*<span[^>]*>(?P<N>[^>]+)</span></h2>\s*[^\(]*\((?P<S>[^\)]+)\)</h2>'
    FILE_OFFLINE_PATTERN = r'<center>File Not Found</center>'
    HOSTER_NAME = "uptobox.com"
   
    def setup(self):
        self.resumeDownload = self.multiDL = self.premium        
        self.chunkLimit = 1

getInfo = create_getInfo(UptoboxCom)
开发者ID:4Christopher,项目名称:pyload,代码行数:21,代码来源:UptoboxCom.py


示例4: ShareFilesCo

# -*- coding: utf-8 -*-
import re

from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class ShareFilesCo(XFileSharingPro):
    __name__ = "ShareFilesCo"
    __type__ = "hoster"
    __pattern__ = r"http://(www\.)?sharefiles\.co/\w{12}"
    __version__ = "0.01"
    __description__ = """Sharefiles.co hoster plugin"""
    __author_name__ = ("stickell")
    __author_mail__ = ("[email protected]")

    HOSTER_NAME = "sharefiles.co"

    def startDownload(self, link):
        link = link.strip()
        if link.startswith('http://adf.ly'):
            link = re.sub('http://adf.ly/\d+/', '', link)
        if self.captcha:
            self.correctCaptcha()
        self.logDebug('DIRECT LINK: %s' % link)
        self.download(link)


getInfo = create_getInfo(ShareFilesCo)
开发者ID:BlackSmith,项目名称:pyload,代码行数:28,代码来源:ShareFilesCo.py


示例5: CramitIn

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo

class CramitIn(XFileSharingPro):
    __name__ = "CramitIn"
    __type__ = "hoster"
    __pattern__ = r"http://(?:\w*\.)*cramit.in/\w{12}"
    __version__ = "0.03"
    __description__ = """Cramit.in hoster plugin"""
    __author_name__ = ("zoidberg")
    __author_mail__ = ("[email protected]")
    
    FILE_INFO_PATTERN = r'<span class=t2>\s*(?P<N>.*?)</span>.*?<small>\s*\((?P<S>.*?)\)'
    DIRECT_LINK_PATTERN = r'href="(http://cramit.in/file_download/.*?)"'    
    HOSTER_NAME = "cramit.in"
    
    def setup(self):
        self.multiDL = self.premium

getInfo = create_getInfo(CramitIn)
开发者ID:beefone,项目名称:pyload,代码行数:20,代码来源:CramitIn.py


示例6: DdlstorageCom

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo

class DdlstorageCom(XFileSharingPro):
    __name__ = "DdlstorageCom"
    __type__ = "hoster"
    __pattern__ = r"http://(?:\w*\.)*?ddlstorage.com/\w{12}"
    __version__ = "0.06"
    __description__ = """DDLStorage.com hoster plugin"""
    __author_name__ = ("zoidberg")
    __author_mail__ = ("[email protected]")
    
    FILE_INFO_PATTERN = r'<h2>\s*Download File\s*<span[^>]*>(?P<N>[^>]+)</span></h2>\s*[^\(]*\((?P<S>[^\)]+)\)</h2>'
    HOSTER_NAME = "ddlstorage.com"
   
    def setup(self):
        self.resumeDownload = self.multiDL = self.premium        
        self.chunkLimit = 1

getInfo = create_getInfo(DdlstorageCom)
开发者ID:4Christopher,项目名称:pyload,代码行数:20,代码来源:DdlstorageCom.py


示例7: RyushareCom

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo

class RyushareCom(XFileSharingPro):
    __name__ = "RyushareCom"
    __type__ = "hoster"
    __pattern__ = r"http://(?:\w*\.)*?ryushare.com/\w{12}"
    __version__ = "0.02"
    __description__ = """ryushare.com hoster plugin"""
    __author_name__ = ("zoidberg")
    __author_mail__ = ("[email protected]")
    
    HOSTER_NAME = "ryushare.com"
    
    def setup(self):
        self.resumeDownload = self.multiDL = self.premium

getInfo = create_getInfo(RyushareCom)
开发者ID:beefone,项目名称:pyload,代码行数:18,代码来源:RyushareCom.py


示例8: or

# it under the terms of the GNU Affero 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 Affero General Public License for more details.                      #
#                                                                          #
# You should have received a copy of the GNU Affero General Public License #
# along with this program.  If not, see <http://www.gnu.org/licenses/>.    #
############################################################################

from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class MegareleaseOrg(XFileSharingPro):
    __name__ = "MegareleaseOrg"
    __type__ = "hoster"
    __pattern__ = r'https?://(?:www\.)?megarelease.org/\w{12}'
    __version__ = "0.01"
    __description__ = """Megarelease.org hoster plugin"""
    __author_name__ = ("derek3x", "stickell")
    __author_mail__ = ("[email protected]", "[email protected]")

    HOSTER_NAME = "megarelease.org"

    FILE_INFO_PATTERN = r'<font color="red">%s/(?P<N>.+)</font> \((?P<S>[^)]+)\)</font>' % __pattern__

getInfo = create_getInfo(MegareleaseOrg)
开发者ID:3DMeny,项目名称:pyload,代码行数:30,代码来源:MegareleaseOrg.py


示例9: FilezyNet

class FilezyNet(XFileSharingPro):
    __name__ = "FilezyNet"
    __type__ = "hoster"
    __version__ = "0.1"
    __pattern__ = r'http://(?:www\.)?filezy.net/.*/.*.html'
    __description__ = """Filezy.net hoster plugin"""

    HOSTER_NAME = "filezy.net"

    FILE_SIZE_PATTERN = r'<span class="plansize">(?P<S>[0-9.]+) (?P<U>[kKMG])i?B</span>'
    WAIT_PATTERN = r'<div id="countdown_str" class="seconds">\n<!--Wait--> <span id=".*?">(\d+)</span>'
    DOWNLOAD_JS_PATTERN = r"<script type='text/javascript'>eval(.*)"

    def setup(self):
        self.resumeDownload = True
        self.multiDL = self.premium

    def getDownloadLink(self):
        self.logDebug("Getting download link")

        data = self.getPostParameters()
        self.html = self.load(self.pyfile.url, post=data, ref=True, decode=True)

        obfuscated_js = re.search(self.DOWNLOAD_JS_PATTERN, self.html)
        dl_file_now = self.js.eval(obfuscated_js.group(1))
        link = re.search(self.DIRECT_LINK_PATTERN, dl_file_now)
        return link.group(1)


getInfo = create_getInfo(FilezyNet)
开发者ID:3DMeny,项目名称:pyload,代码行数:30,代码来源:FilezyNet.py


示例10: PotloadCom

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class PotloadCom(XFileSharingPro):
    __name__ = "PotloadCom"
    __type__ = "hoster"
    __pattern__ = r"http://(?:www\.)?potload\.com/\w{12}"
    __version__ = "0.01"
    __description__ = """billionuploads.com hoster plugin"""
    __author_name__ = ("stickell")
    __author_mail__ = ("[email protected]")

    FILE_INFO_PATTERN = r'<h[1-6]>(?P<N>.+) \((?P<S>\d+) (?P<U>\w+)\)</h'
    HOSTER_NAME = "potload.com"


getInfo = create_getInfo(PotloadCom)
开发者ID:3DMeny,项目名称:pyload,代码行数:18,代码来源:PotloadCom.py


示例11: BillionuploadsCom

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo

class BillionuploadsCom(XFileSharingPro):
    __name__ = "BillionuploadsCom"
    __type__ = "hoster"
    __pattern__ = r"http://(?:\w*\.)*?billionuploads.com/\w{12}"
    __version__ = "0.01"
    __description__ = """billionuploads.com hoster plugin"""
    __author_name__ = ("zoidberg")
    __author_mail__ = ("[email protected]")

    FILE_NAME_PATTERN = r'<b>Filename:</b>(?P<N>.*?)<br>'
    FILE_SIZE_PATTERN = r'<b>Size:</b>(?P<S>.*?)<br>'
    HOSTER_NAME = "billionuploads.com"

getInfo = create_getInfo(BillionuploadsCom)
开发者ID:4Christopher,项目名称:pyload,代码行数:17,代码来源:BillionuploadsCom.py


示例12: SpeedLoadOrg

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class SpeedLoadOrg(XFileSharingPro):
    __name__ = "SpeedLoadOrg"
    __type__ = "hoster"
    __pattern__ = r"http://(www\.)?speedload\.org/(?P<ID>\w+)"
    __version__ = "1.01"
    __description__ = """Speedload.org hoster plugin"""
    __author_name__ = "stickell"
    __author_mail__ = "[email protected]"

    FILE_NAME_PATTERN = r"Filename:</b></td><td nowrap>(?P<N>[^<]+)</td></tr>"
    FILE_SIZE_PATTERN = r"Size:</b></td><td>[\w. ]+<small>\((?P<S>\d+) bytes\)</small>"

    HOSTER_NAME = "speedload.org"

    def handlePremium(self):
        self.download(self.pyfile.url, post=self.getPostParameters())


getInfo = create_getInfo(SpeedLoadOrg)
开发者ID:4Christopher,项目名称:pyload,代码行数:23,代码来源:SpeedLoadOrg.py


示例13: IFileWs

# -*- coding: utf-8 -*-

from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class IFileWs(XFileSharingPro):
    __name__ = "IFileWs"
    __type__ = "hoster"
    __pattern__ = r"http://(?:www\.)?ifile\.ws/\w+(/.+)?"
    __version__ = "0.01"
    __description__ = """Ifile.ws hoster plugin"""
    __author_name__ = "z00nx"
    __author_mail__ = "[email protected]"

    HOSTER_NAME = "ifile.ws"

    FILE_INFO_PATTERN = '<h1\s+style="display:inline;">(?P<N>[^<]+)</h1>\s+\[(?P<S>[^]]+)\]'
    FILE_OFFLINE_PATTERN = "File Not Found|The file was removed by administrator"
    LONG_WAIT_PATTERN = "(?P<M>\d(?=\s+minutes)).*(?P<S>\d+(?=\s+seconds))"


getInfo = create_getInfo(IFileWs)
开发者ID:JeRiKo1,项目名称:pyload,代码行数:22,代码来源:IFileWs.py


示例14: SharebeesCom

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class SharebeesCom(XFileSharingPro):
    __name__ = "SharebeesCom"
    __type__ = "hoster"
    __pattern__ = r"http://(?:\w*\.)*?sharebees.com/\w{12}"
    __version__ = "0.01"
    __description__ = """ShareBees hoster plugin"""
    __author_name__ = ("zoidberg")
    __author_mail__ = ("[email protected]")

    FILE_NAME_PATTERN = r'<p class="file-name" ><.*?>\s*(?P<N>.+)'
    FILE_SIZE_PATTERN = r'<small>\((?P<S>\d+) bytes\)</small>'
    FORM_PATTERN = 'F1'
    HOSTER_NAME = "sharebees.com"


getInfo = create_getInfo(SharebeesCom)
开发者ID:DasLampe,项目名称:pyload,代码行数:20,代码来源:SharebeesCom.py


示例15: TusfilesNet

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class TusfilesNet(XFileSharingPro):
    __name__ = "TusfilesNet"
    __type__ = "hoster"
    __pattern__ = r"http://(?:www\.)?tusfiles\.net/(?P<ID>[a-zA-Z0-9]{12})"
    __version__ = "0.02"
    __description__ = """Tusfiles.net hoster plugin"""
    __author_name__ = ("stickell", "Walter Purcaro")
    __author_mail__ = ("[email protected]", "[email protected]")

    FILE_INFO_PATTERN = r'<li>(?P<N>[^<]+)</li>\s+<li><b>Size:</b> <small>(?P<S>[\d.]+) (?P<U>\w+)</small></li>'
    FILE_OFFLINE_PATTERN = r'The file you were looking for could not be found'
    HOSTER_NAME = "tusfiles.net"

    def setup(self):
        self.chunkLimit = 1
        self.resumeDownload = self.multiDL = True
        if self.premium:
            self.limitDL = 5
        elif self.account:
            self.limitDL = 3
        else:
            self.limitDL = 2


getInfo = create_getInfo(TusfilesNet)
开发者ID:BlackSmith,项目名称:pyload,代码行数:29,代码来源:TusfilesNet.py


示例16: LemUploadsCom

# -*- coding: utf-8 -*-

# Test links:
# BigBuckBunny_320x180.mp4 - 61.7 Mb - http://lemuploads.com/uwol0aly9dld

from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class LemUploadsCom(XFileSharingPro):
    __name__ = "LemUploadsCom"
    __type__ = "hoster"
    __pattern__ = r'https?://(?:www\.)?lemuploads.com/\w{12}'
    __version__ = "0.01"
    __description__ = """LemUploads.com hoster plugin"""
    __author_name__ = "t4skforce"
    __author_mail__ = "t4skforce1337[AT]gmail[DOT]com"

    HOSTER_NAME = "lemuploads.com"

    FILE_OFFLINE_PATTERN = r'<b>File Not Found</b><br><br>'
    FILE_NAME_PATTERN = r'<b>Password:</b></div>\s*<h2>(?P<N>[^<]+)</h2>'


getInfo = create_getInfo(LemUploadsCom)
开发者ID:3DMeny,项目名称:pyload,代码行数:24,代码来源:LemUploadsCom.py


示例17: CyberlockerCh

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class CyberlockerCh(XFileSharingPro):
    __name__ = "CyberlockerCh"
    __type__ = "hoster"
    __pattern__ = r"http://(www\.)?cyberlocker\.ch/\w{12}"
    __version__ = "0.01"
    __description__ = """Cyberlocker.ch hoster plugin"""
    __author_name__ = ("stickell")
    __author_mail__ = ("[email protected]")

    HOSTER_NAME = "cyberlocker.ch"


getInfo = create_getInfo(CyberlockerCh)
开发者ID:BlackSmith,项目名称:pyload,代码行数:17,代码来源:CyberlockerCh.py


示例18: PandaPlanet

# -*- coding: utf-8 -*-

# Test links:
# test.bin - 214 B - http://pandapla.net/pew1cz3ot586
# BigBuckBunny_320x180.mp4 - 61.7 Mb - http://pandapla.net/tz0rgjfyyoh7

from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class PandaPlanet(XFileSharingPro):
    __name__ = "PandaPlanet"
    __type__ = "hoster"
    __pattern__ = r"https?://(?:www\.)?pandapla\.net/\w{12}"
    __version__ = "0.01"
    __description__ = """Pandapla.net hoster plugin"""
    __author_name__ = "t4skforce"
    __author_mail__ = "t4skforce1337[AT]gmail[DOT]com"

    HOSTER_NAME = "pandapla.net"

    FILE_SIZE_PATTERN = r"File Size:</b>\s*</td>\s*<td[^>]*>(?P<S>[^<]+)</td>\s*</tr>"
    FILE_NAME_PATTERN = r"File Name:</b>\s*</td>\s*<td[^>]*>(?P<N>[^<]+)</td>\s*</tr>"
    DIRECT_LINK_PATTERN = (
        r'(http://([^/]*?%s|\d+\.\d+\.\d+\.\d+)(:\d+)?(/d/|(?:/files)?/\d+/\w+/)[^"\'<]+\/(?!video\.mp4)[^"\'<]+)'
        % HOSTER_NAME
    )


getInfo = create_getInfo(PandaPlanet)
开发者ID:B1GPY,项目名称:pyload,代码行数:29,代码来源:PandaPlanet.py


示例19: Share76Com

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class Share76Com(XFileSharingPro):
    __name__ = "Share76Com"
    __type__ = "hoster"
    __pattern__ = r"http://(?:\w*\.)*?share76.com/\w{12}"
    __version__ = "0.03"
    __description__ = """share76.com hoster plugin"""
    __author_name__ = ("me")

    FILE_INFO_PATTERN = r'<h2>\s*File:\s*<font[^>]*>(?P<N>[^>]+)</font>\s*\[<font[^>]*>(?P<S>[0-9.]+) (?P<U>[kKMG])i?B</font>\]</h2>'
    HOSTER_NAME = "share76.com"

    def setup(self):
        self.resumeDownload = self.multiDL = self.premium
        self.chunkLimit = 1


getInfo = create_getInfo(Share76Com)
开发者ID:DasLampe,项目名称:pyload,代码行数:21,代码来源:Share76Com.py


示例20: NovafileCom

# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo

class NovafileCom(XFileSharingPro):
    __name__ = "NovafileCom"
    __type__ = "hoster"
    __pattern__ = r"http://(?:\w*\.)*novafile\.com/\w{12}"
    __version__ = "0.01"
    __description__ = """novafile.com hoster plugin"""
    __author_name__ = ("zoidberg")
    __author_mail__ = ("[email protected]")
       
    FILE_SIZE_PATTERN = r'<div class="size">(?P<S>.+?)</div>'
    #FILE_OFFLINE_PATTERN = '<b>&quot;File Not Found&quot;</b>|File has been removed due to Copyright Claim'
    FORM_PATTERN = r'name="F\d+"'
    ERROR_PATTERN = r'class="alert[^"]*alert-separate"[^>]*>\s*(?:<p>)?(.*?)\s*</'
    DIRECT_LINK_PATTERN = r'<a href="(http://s\d+\.novafile\.com/.*?)" class="btn btn-green">Download File</a>'
    
    HOSTER_NAME = "novafile.com"   
    
    def setup(self):
        self.multiDL = False 

getInfo = create_getInfo(NovafileCom)
开发者ID:4Christopher,项目名称:pyload,代码行数:24,代码来源:NovafileCom.py



注:本文中的module.plugins.hoster.XFileSharingPro.create_getInfo函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python CaptchaService.ReCaptcha类代码示例发布时间:2022-05-27
下一篇:
Python ReCaptcha.ReCaptcha类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap