本文整理汇总了Python中module.plugins.hoster.XFileSharingPro.create_getInfo函数的典型用法代码示例。如果您正苦于以下问题:Python create_getInfo函数的具体用法?Python create_getInfo怎么用?Python create_getInfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了create_getInfo函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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)
示例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>"File Not Found"</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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)