一个下载管理器,它接受URL、json文件以及concept作为输入,可以通过torrent从URL下载文件。
downloadplus的Python项目详细描述
一个下载管理器,它接受URL、json文件以及concept作为输入,可以通过torrent从URL下载文件。在
想支持开发并保持更新?在
{a2}
安装
克隆此回购。在
使用
fromdownloadplusimportDownloader
从url下载
^{pr2}$从json文件的url下载
确保json文件的格式如以下示例所示:
[{"name":"bricks","target_subfolder":"InterestingStuff","progress":null,"url":"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Brick_wall_close-up_view.jpg/440px-Brick_wall_close-up_view.jpg"},{"name":"Big Buck Bunny","target_subfolder":null,"progress":null,"url":"magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fbig-buck-bunny.torrent"}]
然后处理它。。。在
Downloader(input_json_path='example.json').process()
从concept数据库的url下载
确保您的页面具有“整页数据库”和以下字段:
- 姓名
- 进展
- 网址
- 目标\u子文件夹
然后从webbrowser中的cookies中获取您的概念token_v2
,并处理概念页面。。。在
Downloader(notion_token='{{token_v2}}',input_notion_url='{{notion_page_url}}').process()
- 项目
标签: