Giter VIP home page Giter VIP logo

movieheavens's Introduction

MovieHeavens

基于Pyqt5的电影天堂电影搜索工具,为了避免找电影期间的各种广告,以及各种页面跳转

使用

命令行下

pip install -r requirements.txt
python3 movies.py

打包

Linux下

sudo apt-get install python3-pip
pip3 install pyinstaller
bash build.sh

Windows下

# only python3 is supported
pip install pyinstaller
# -w 不能省略,不然会运行过程中会控制台界面
pyinstaller -F -w ./movies.py ./movieSource/MovieHeaven.py ./movieSource/fake_user_agent.py

然后会在当前文件夹生成俩个目录,其中dist目录有个可执行的程序

常见问题

打包之后不能正常执行,尝试将打包参数 -w 移除,然后在命令行下启动程序,看一下控制台输出错误信息

ModuleNotFoundError: No module named 'PyQt5.sip'

解决办法

使用下述命令打包

pyinstaller -F -w ./movies.py ./movieSource/MovieHeaven.py ./movieSource/fake_user_agent.py --hidden-import PyQt5.sip 

movieheavens's People

Contributors

fangxy926 avatar leetaogoooo avatar niyuhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

movieheavens's Issues

v1.0.1

移除 fake-agent 依赖

优化代码

移除 pyqt4, 使用 pyqt5

安装加载依赖

打包失败

执行 python movies.py 没问题,打包失败了

λ pyinstaller -F -w ./movies.py ./movieSource/MovieHeaven.py ./movieSource/fake_user_agent.py
417 INFO: PyInstaller: 3.4
418 INFO: Python: 3.7.0
423 INFO: Platform: Windows-7-6.1.7601-SP1
426 INFO: wrote d:\code\MovieHeavens\movies.spec
440 INFO: UPX is not available.
444 INFO: Extending PYTHONPATH with paths
['d:\\code\\MovieHeavens',
 'd:\\code\\MovieHeavens\\movieSource',
 'd:\\code\\MovieHeavens\\movieSource',
 'd:\\code\\MovieHeavens']
447 INFO: checking Analysis
447 INFO: Building Analysis because Analysis-00.toc is non existent
447 INFO: Initializing module dependency graph...
454 INFO: Initializing module graph hooks...
479 INFO: Analyzing base_library.zip ...
Traceback (most recent call last):
  File "<string>", line 41, in <module>
  File "<string>", line 13, in walk_packages
  File "d:\python\lib\pkgutil.py", line 130, in iter_modules
    for name, ispkg in iter_importer_modules(i, prefix):
  File "d:\python\lib\pkgutil.py", line 149, in _iter_file_finder_modules
    import inspect
  File "d:\python\lib\inspect.py", line 40, in <module>
    import linecache
  File "d:\python\lib\linecache.py", line 11, in <module>
    import tokenize
  File "d:\python\lib\tokenize.py", line 33, in <module>
    import re
  File "d:\python\lib\re.py", line 143, in <module>
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
Traceback (most recent call last):
  File "<string>", line 41, in <module>
  File "<string>", line 13, in walk_packages
  File "d:\python\lib\pkgutil.py", line 130, in iter_modules
    for name, ispkg in iter_importer_modules(i, prefix):
  File "d:\python\lib\pkgutil.py", line 149, in _iter_file_finder_modules
    import inspect
  File "d:\python\lib\inspect.py", line 40, in <module>
    import linecache
  File "d:\python\lib\linecache.py", line 11, in <module>
    import tokenize
  File "d:\python\lib\tokenize.py", line 33, in <module>
    import re
  File "d:\python\lib\re.py", line 143, in <module>
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
5523 INFO: running Analysis Analysis-00.toc
5557 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by d:\python\python.exe
6021 INFO: Caching module hooks...
6028 INFO: Analyzing d:\code\MovieHeavens\movies.py
7030 INFO: Processing pre-safe import module hook   urllib3.packages.six.moves
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "d:\python\lib\site-packages\urllib3\__init__.py", line 8, in <module>
    from .connectionpool import (
  File "d:\python\lib\site-packages\urllib3\connectionpool.py", line 3, in <module>
    import logging
  File "d:\python\lib\logging\__init__.py", line 26, in <module>
    import sys, os, time, io, traceback, warnings, weakref, collections.abc
  File "d:\python\lib\traceback.py", line 5, in <module>
    import linecache
  File "d:\python\lib\linecache.py", line 11, in <module>
    import tokenize
  File "d:\python\lib\tokenize.py", line 33, in <module>
    import re
  File "d:\python\lib\re.py", line 143, in <module>
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
Traceback (most recent call last):
  File "d:\python\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\python\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\python\Scripts\pyinstaller.exe\__main__.py", line 9, in <module>
  File "d:\python\lib\site-packages\PyInstaller\__main__.py", line 111, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "d:\python\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "d:\python\lib\site-packages\PyInstaller\building\build_main.py", line 838, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "d:\python\lib\site-packages\PyInstaller\building\build_main.py", line 784, in build
    exec(text, spec_namespace)
  File "<string>", line 17, in <module>
  File "d:\python\lib\site-packages\PyInstaller\building\build_main.py", line 241, in __init__
    self.__postinit__()
  File "d:\python\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __postinit__
    self.assemble()
  File "d:\python\lib\site-packages\PyInstaller\building\build_main.py", line 443, in assemble
    priority_scripts.append(self.graph.run_script(script))
  File "d:\python\lib\site-packages\PyInstaller\depend\analysis.py", line 201, in run_script
    self._top_script_node = super(PyiModuleGraph, self).run_script(pathname)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1348, in run_script
    self._scan_code(m, co, co_ast)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code
    self._process_imports(module)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook
    target_attr_names=None, level=level, edge_attr=edge_attr)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1422, in import_hook
    target_module = self._load_tail(target_package, target_module_partname)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1635, in _load_tail
    submodule = self._safe_import_module(head, mname, submodule)
  File "d:\python\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module
    module_basename, module_name, parent_package)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module
    module_name, file_handle, pathname, metadata)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module
    self._scan_code(m, co, co_ast)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code
    self._process_imports(module)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook
    target_attr_names=None, level=level, edge_attr=edge_attr)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1421, in import_hook
    source_package, target_module_partname, level)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1573, in _find_head_package
    target_module_headname, target_package_name, source_package)
  File "d:\python\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module
    module_basename, module_name, parent_package)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module
    module_name, file_handle, pathname, metadata)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2028, in _load_module
    m = self._load_package(fqname, pathname, packagepath)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2813, in _load_package
    self._load_module(fqname, fp, buf, stuff)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module
    self._scan_code(m, co, co_ast)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code
    self._process_imports(module)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook
    target_attr_names=None, level=level, edge_attr=edge_attr)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1421, in import_hook
    source_package, target_module_partname, level)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1573, in _find_head_package
    target_module_headname, target_package_name, source_package)
  File "d:\python\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module
    module_basename, module_name, parent_package)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module
    module_name, file_handle, pathname, metadata)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2028, in _load_module
    m = self._load_package(fqname, pathname, packagepath)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2813, in _load_package
    self._load_module(fqname, fp, buf, stuff)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module
    self._scan_code(m, co, co_ast)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code
    self._process_imports(module)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook
    target_attr_names=None, level=level, edge_attr=edge_attr)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1421, in import_hook
    source_package, target_module_partname, level)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1573, in _find_head_package
    target_module_headname, target_package_name, source_package)
  File "d:\python\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module
    module_basename, module_name, parent_package)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module
    module_name, file_handle, pathname, metadata)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module
    self._scan_code(m, co, co_ast)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code
    self._process_imports(module)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook
    target_attr_names=None, level=level, edge_attr=edge_attr)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1421, in import_hook
    source_package, target_module_partname, level)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1573, in _find_head_package
    target_module_headname, target_package_name, source_package)
  File "d:\python\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module
    module_basename, module_name, parent_package)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module
    module_name, file_handle, pathname, metadata)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module
    self._scan_code(m, co, co_ast)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code
    self._process_imports(module)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook
    target_attr_names=None, level=level, edge_attr=edge_attr)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1422, in import_hook
    target_module = self._load_tail(target_package, target_module_partname)
  File "d:\python\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1635, in _load_tail
    submodule = self._safe_import_module(head, mname, submodule)
  File "d:\python\lib\site-packages\PyInstaller\depend\analysis.py", line 260, in _safe_import_module
    hook_module.pre_safe_import_module(hook_api)
  File "d:\python\lib\site-packages\PyInstaller\hooks\pre_safe_import_module\hook-urllib3.packages.six.moves.py", line 31, in pre_safe_import_module
    for real_module_name, six_module_name in real_to_six_module_name.items():
AttributeError: 'str' object has no attribute 'items'

可视化小改进

我看查询到很多迅雷可以下载的链接,但是怎么选择自己想要的,可视化不是很好,这也看不出来呀,而且查询的结果可不可以固定选择一个清晰度的迅雷链接,或者百度云的链接,弄到剪贴板上去的呢,直接右键到迅雷里面下载这样,会很方便。

Project dependencies may have API risk issues

Hi, In MovieHeavens, inappropriate dependency versioning constraints can cause risks.

Below are the dependencies and version constraints that the project is using

PyQt5
requests
fake-useragent

The version constraint == will introduce the risk of dependency conflicts because the scope of dependencies is too strict.
The version constraint No Upper Bound and * will introduce the risk of the missing API Error because the latest version of the dependencies may remove some APIs.

After further analysis, in this project,
The version constraint of dependency requests can be changed to >=0.2.1,<=0.2.3.
The version constraint of dependency requests can be changed to >=0.7.0,<=2.24.0.
The version constraint of dependency requests can be changed to ==2.26.0.

The above modification suggestions can reduce the dependency conflicts as much as possible,
and introduce the latest version as much as possible without calling Error in the projects.

The invocation of the current project includes all the following methods.

The calling methods from the requests
requests.get
The calling methods from the all methods
PyQt5.QtWidgets.QGridLayout
self.init_widgets.init_layout.init_event
self.search_content_text_list.clear
self.__all_page_details_url_list.extend
re.compile
PyQt5.QtWidgets.QApplication.clipboard.clear
self.menu_bar.addMenu.addAction
len
movieSource.fake_user_agent.useragent_random
self.movie_source_combobox.addItem
self.search_push_button.clicked.connect
str
PyQt5.QtWidgets.QAction.setIcon
PyQt5.QtWidgets.QGridLayout.addWidget
PyQt5.QtWidgets.QLabel
watch_action.triggered.connect
PyQt5.QtGui.QImage
random.choice
self.search_content_text_list.itemClicked.connect
download_url_list.append
self.__get_movie_contents_url
int
self.setGeometry
ImageWindow
reward_action.triggered.connect
WorkThread
self.tr
self.setWindowTitle
self.reward_window.show
movieSource.MovieHeaven.MovieHeaven
PyQt5.QtWidgets.QApplication.exec_
PyQt5.QtGui.QIcon
self.__pool.join
self.menuBar
self.__next_page_detail
self.get_select_movie_source
re.compile.findall
self.search_content_text_list.addItems
LayoutDialog
PyQt5.QtGui.QPixmap.height
PyQt5.QtGui.QPixmap
self.movies_list.append
PyQt5.QtWidgets.QMessageBox.critical
self.movie_name_line_edit.text.encode
self.__get_movie_down_url
PyQt5.QtWidgets.QApplication.clipboard
self.__get_page_number_total
PyQt5.QtWidgets.QPushButton
range
PyQt5.QtWidgets.QLineEdit
self.ImageWindow.super.__init__
self.watch_window.show
PyQt5.QtWidgets.QVBoxLayout
search_movies.get_display_content
self.__get_headers
PyQt5.QtGui.QPixmap.width
self.setCentralWidget
PyQt5.QtWidgets.QWidget.setLayout
PyQt5.QtWidgets.QAction
PyQt5.QtWidgets.QLabel.setPixmap
PyQt5.QtWidgets.QApplication.clipboard.setText
self.work.render
self.__search_movie_results
requests.get
self.__pool.map
PyQt5.QtWidgets.QVBoxLayout.addWidget
self.__get_movies_detail_page
self.__get_search_content_by_url
PyQt5.QtWidgets.QComboBox
self.search_content_text_list.currentItem
PyQt5.QtCore.QThread.__init__
self.movie_source_combobox.currentText
magnet_down_pattern.findall.replace
PyQt5.QtWidgets.QMessageBox.information
super.__init__
self.start
super
self.search_content_text_list.currentItem.text
self.__pool.close
PyQt5.QtWidgets.QLabel.resize
LayoutDialog.show
PyQt5.QtWidgets.QWidget
self.tip_label.setText
self.menu_bar.addMenu
multiprocessing.dummy.Pool
PyQt5.QtWidgets.QApplication
self.critical
PyQt5.QtWidgets.QListWidget
self.slot_information
self.init_widgets.init_layout
self.movie_name_line_edit.text
self.init_widgets

@developer
Could please help me check this issue?
May I pull a request to fix it?
Thank you very much.

支持的电影源

dev分支

  1. 电影天堂
  2. BT天堂
  3. LOL电影天堂

master分支

  1. 电影天堂

关于对软件的若干建议

关于对软件的若干建议

  1. 主界面上的“查询内容:查询未开始”字样建议放在状态栏,不然拉大界面后,比例就不对了,见下图。
  2. 建议开放这个repo的wiki页面,以便于大家对产品有心得可以写在里面,不用开issue。

Attention

片源网和Mp4吧好像已经失效了

安装PyInstaller出现错误“ ModuleNotFoundError: No module named 'PyInstaller'”?

OS version:Microsoft Windows 10 version 1803
Python version:Python 3.7.2

$> python3 -m pip install PyInstaller
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting PyInstaller
Downloading https://mirrors.aliyun.com/pypi/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz (3.5MB)
100% |████████████████████████████████| 3.5MB 1.6MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... error
Complete output from command "D:\Program Files (x86)\Python\Python37-32\python3.exe" "D:\Program Files (x86)\Python\Python37-32\lib\site-packages\pip_vendor\pep517_in_process.py" get_requires_for_build_wheel C:\Users\JEFFLE1\AppData\Local\Temp\tmp7nj6_0ug:
Traceback (most recent call last):
File "D:\Program Files (x86)\Python\Python37-32\lib\site-packages\pip_vendor\pep517_in_process.py", line 207, in
main()
File "D:\Program Files (x86)\Python\Python37-32\lib\site-packages\pip_vendor\pep517_in_process.py", line 197, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "D:\Program Files (x86)\Python\Python37-32\lib\site-packages\pip_vendor\pep517_in_process.py", line 54, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\JEFFLE
1\AppData\Local\Temp\pip-build-env-lw5je0z7\overlay\Lib\site-packages\setuptools\build_meta.py", line 115, in get_requires_for_build_wheel
return _get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\JEFFLE1\AppData\Local\Temp\pip-build-env-lw5je0z7\overlay\Lib\site-packages\setuptools\build_meta.py", line 101, in _get_build_requires
_run_setup()
File "C:\Users\JEFFLE
1\AppData\Local\Temp\pip-build-env-lw5je0z7\overlay\Lib\site-packages\setuptools\build_meta.py", line 85, in _run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 20, in
from PyInstaller import version as version, HOMEPATH, PLATFORM
ModuleNotFoundError: No module named 'PyInstaller'


Command ""D:\Program Files (x86)\Python\Python37-32\python3.exe" "D:\Program Files (x86)\Python\Python37-32\lib\site-packages\pip_vendor\pep517_in_process.py" get_requires_for_build_wheel C:\Users\JEFFLE1\AppData\Local\Temp\tmp7nj6_0ug" failed with error code 1 in C:\Users\JEFFLE1\AppData\Local\Temp\pip-install-51r2xxed\PyInstaller

解决磁力链接无法解析

好奇为什么会有两个相同的链接?

看到这里的代码,发现有点不对。磁力链接为什么还用ftp_down_pattern去正则匹配

修改后

magnet_url_list = magnet_down_pattern.findall(down_page_content)

修改后能够返回磁力链接,但是链接还有问题。和正常的磁力链接相比,匹配的结果多了amp;字符

image
用replace函数将amp;替换成空

download_url_list.append(magnet_url_list[0].replace('amp;', ''))

修改后正常下载
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.