资源简介
qbittorrent搜索插件 下载之后解压 在qbittorrent的搜索界面 选择本地添加 全选 直接全部导入
代码片段和文件信息
#VERSION: 0.3
#AUTHORS: Henrik Asp (solenskiner@gmail.com)
# Copyright (c) 2019 Henrik Asp
# All rights reserved.
# Redistribution and use in source and binary forms with or without
# modification are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice
# this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
# AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR
# CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN
# CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
from novaprinter import prettyPrinter
from helpers import download_file retrieve_url
from html.parser import HTMLParser
from functools import partial
class MyHTMLParser(HTMLParser):
defaults = {
“link“: -1
“name“: -1
“size“: -1
“seeds“: 0
“leech“: 0
“engine_url“: “http://academictorrents.com“
“desc_link“: -1
}
def __init__(self *args **kwargs):
super().__init__(*args **kwargs)
self.data = []
self.current = self.defaults.copy()
self.tag_stack = [‘root‘]
self.attrs_stack = [{}]
self.numchild_stack = [0]
self.data = { ‘torrents‘:[]
‘next_page‘: None }
def handle_starttag(self tag attrs):
“““ Parser‘s start tag handler “““
dispatcher = getattr(
self
“_“.join((“handle_start_tag“ tag))
partial(self.handle_start_tag_default tag)
)
self.pre_handle_start_tag(tag attrs)
dispatcher(attrs)
self.post_handle_start_tag(tag attrs)
def handle_start_tag_default(self tag attrs):
pass
def pre_handle_start_tag(self tag attrs):
self.numchild_stack[-1] += 1
def post_handle_start_tag(self tag attrs):
self.tag_stack.append(tag)
self.attrs_stack.append(dict(attrs))
self.numchild_stack.append(0)
def handle_endtag(self tag):
“““ Parser‘s end tag handler “““
dispatcher = getattr(
self
“_“.join((“handle_end_tag“ tag))
partial(self.han
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-12-16 20:34 qbittorrent搜索插件\
文件 1981 2019-12-16 20:22 qbittorrent搜索插件\corsarored.py
文件 3663 2019-12-16 20:16 qbittorrent搜索插件\horriblesubs-mauricci.py
文件 3344 2019-12-16 20:15 qbittorrent搜索插件\cinecalidad.py
文件 5416 2019-12-16 20:16 qbittorrent搜索插件\linuxtracker.py
文件 5290 2019-12-16 20:17 qbittorrent搜索插件\rutor.py
文件 5384 2019-12-16 20:16 qbittorrent搜索插件\kickass_torrent.py
文件 4076 2019-12-16 20:15 qbittorrent搜索插件\btetree.py
文件 3815 2019-12-16 20:17 qbittorrent搜索插件\solotorrent.py
文件 2676 2019-12-16 20:16 qbittorrent搜索插件\corsaronero.py
文件 7214 2019-12-16 20:16 qbittorrent搜索插件\nyaapantsu.py
文件 5028 2019-12-16 20:16 qbittorrent搜索插件\horriblesubs.py
文件 5169 2019-12-16 20:16 qbittorrent搜索插件\corsaroblu.py
文件 4227 2019-12-16 20:18 qbittorrent搜索插件\torrentfunk.py
文件 5252 2019-12-16 20:17 qbittorrent搜索插件\nyaasi.py
文件 1730 2019-12-16 20:16 qbittorrent搜索插件\magnetdl.py
文件 4173 2019-12-16 20:16 qbittorrent搜索插件\extratorrent.py
文件 4328 2019-12-16 20:18 qbittorrent搜索插件\yourbittorrent.py
文件 3536 2019-12-16 20:15 qbittorrent搜索插件\ali213.py
文件 7634 2019-12-16 20:15 qbittorrent搜索插件\demonoid.py
文件 4194 2019-12-16 20:16 qbittorrent搜索插件\foxcili.py
文件 1748 2019-12-16 20:16 qbittorrent搜索插件\pantsu.py
文件 7654 2019-12-16 20:18 qbittorrent搜索插件\yts.py
文件 5158 2019-12-16 20:18 qbittorrent搜索插件\torrentproject.py
文件 4772 2019-12-16 20:17 qbittorrent搜索插件\skytorrents.py
文件 2190 2019-12-16 20:17 qbittorrent搜索插件\smallgames.py
文件 3959 2019-12-16 20:15 qbittorrent搜索插件\anidex.py
文件 1937 2019-12-16 20:19 qbittorrent搜索插件\yts_am.py
文件 4023 2019-12-16 20:15 qbittorrent搜索插件\cpasbien.py
文件 3297 2019-12-16 20:17 qbittorrent搜索插件\snowfl.py
文件 5339 2019-12-16 20:17 qbittorrent搜索插件\rockbox.py
............此处省略14个文件信息
评论
共有 条评论