请问电脑能不能定时下载,像8点设置电脑凌晨自动下载软件(想蹭学校夜间免费WiFi,但不愿意蹲点)? 您所在的位置:网站首页 steam下载自动暂停 请问电脑能不能定时下载,像8点设置电脑凌晨自动下载软件(想蹭学校夜间免费WiFi,但不愿意蹲点)?

请问电脑能不能定时下载,像8点设置电脑凌晨自动下载软件(想蹭学校夜间免费WiFi,但不愿意蹲点)?

2023-03-27 02:17| 来源: 网络整理| 查看: 265

免费的有qbittorrent

qBittorrent 是一个新的轻量级 BitTorrent 客户端,可运行于 Linux 及其他可能系统,它简单易用,漂亮的外观,功能强大。现在它可以被视为一个良好的替代其他 BitTorrent 软件的客户端。

提供Web API,可以用各种程序语言来控制,如python

https://pypi.org/project/qbittorrent-api/

import qbittorrentapi # instantiate a Client using the appropriate WebUI configuration qbt_client = qbittorrentapi.Client( host='localhost', port=8080, username='admin', password='adminadmin', ) # the Client will automatically acquire/maintain a logged-in state # in line with any request. therefore, this is not strictly necessary; # however, you may want to test the provided login credentials. try: qbt_client.auth_log_in() except qbittorrentapi.LoginFailed as e: print(e) # display qBittorrent info print(f'qBittorrent: {qbt_client.app.version}') print(f'qBittorrent Web API: {qbt_client.app.web_api_version}') for k,v in qbt_client.app.build_info.items(): print(f'{k}: {v}') # retrieve and show all torrents for torrent in qbt_client.torrents_info(): print(f'{torrent.hash[-6:]}: {torrent.name} ({torrent.state})') # pause all torrents qbt_client.torrents.pause.all()

api提供了远程控制的很多功能,例如 :下载任务的创建,任务状态的查询,任务的启动及暂停等等,实现你要的功能太简单了

Aria2

Aria2 是一个多平台轻量级,支持 HTTP、FTP、BitTorrent 等多协议、多来源的命令行下载工具。Aria2 可以从多个来源、多个协议下载资源,最大的程度上利用了你的带宽。Aria2 有着非常小的资源占用,在关闭磁盘缓存的情况下,物理内存占用通常为 4M(正常 HTTP/FTP 下载的情况下),BitTorrent 下载每秒 2.8M/S 的情况下,CPU 占有率约为 6%。

Aria2 支持 JSON-RPC 和 XML-RPC 接口远程调用。

https://pypi.org/project/aria2p/

import aria2p # initialization, these are the default values aria2 = aria2p.API( aria2p.Client( host="http://localhost", port=6800, secret="" ) ) # list downloads downloads = aria2.get_downloads() for download in downloads: print(download.name, download.download_speed) # add downloads magnet_uri = "magnet:?xt=urn:..." download = aria2.add_magnet(magnet_uri)

也支持命令行,结合crontab,使用它你可以在指定的时间执行一个shell脚本或者一系列Linux命令。

usage: aria2p [GLOBAL_OPTS...] COMMAND [COMMAND_OPTS...] Command-line tool and Python library to interact with an `aria2c` daemon process through JSON-RPC. Global options: -h, --help Show this help message and exit. Commands also accept the -h/--help option. -p PORT, --port PORT Port to use to connect to the remote server. -H HOST, --host HOST Host address for the remote server. -s SECRET, --secret SECRET Secret token to use to connect to the remote server. -L {TRACE,DEBUG,INFO,SUCCESS,WARNING,ERROR,CRITICAL}, --log-level {TRACE,DEBUG,INFO,SUCCESS,WARNING,ERROR,CRITICAL} Log level to use -P LOG_PATH, --log-path LOG_PATH Log path to use. Can be a directory or a file. -T CLIENT_TIMEOUT, --client-timeout CLIENT_TIMEOUT Timeout in seconds for requests to the remote server. Floats supported. Default: 60.0. Commands: add Add downloads with URIs/Magnets/torrents/Metalinks. add-magnets (add-magnet) Add downloads with Magnet URIs. add-metalinks (add-metalink) Add downloads with Metalink files. add-torrents (add-torrent) Add downloads with torrent files. autopurge (autoclear) Automatically purge completed/removed/failed downloads. call Call a remote method through the JSON-RPC client. pause (stop) Pause downloads. remove (rm, del, delete) Remove downloads. resume (start) Resume downloads. show Show the download progression. top Launch the top-like interactive interface. listen Listen to notifications.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有