Skip to content

Instantly share code, notes, and snippets.

// Based on DieNacht's version
// All credit goes to c0re100
// Reference: https://gist.github.com/c0re100/3dea464145bf6abc8b1332a463fed525/raw/U2PeerLocation.user.js
// ==UserScript==
// @name U2 Show Peer location
// @namespace https://u2.dmhy.org
// @version 1.2.1-SD
// @description Show Peer location
// @author xNihilo
@xNihil0
xNihil0 / qB_updatesecure.py
Last active March 28, 2022 06:07
U2 更新种子 securekey (qBittorrent)
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import qbittorrentapi
import json
import requests
import time
import sys
# 运行过程中遇到部分种子更新失败是正常现象, 请多次运行至所有种子均已更新完成
@xNihil0
xNihil0 / qB_updatetracker.py
Last active January 12, 2021 14:45
批量强制汇报下载中种子
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import qbittorrentapi
import psutil
import time
# host 填写你的 qBittorrent WebUI 地址, 默认本地 localhost
# port 填写你的 qBittorrent WebUI 端口
# username 填写你的 qBittorrent WebUI 用户名
@xNihil0
xNihil0 / division_code.py
Last active October 19, 2020 13:55
⾏政区划代码爬虫
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
import requests
from bs4 import BeautifulSoup
import lxml
import json
def parse_page(url):
# -*- coding:utf-8 -*-
# !/usr/bin/env python3
'''
Author: ayasakinagi
Email: [email protected]
环境: Python3
依赖: deluge_client
使用: 修改host, port, username, password, limitSize, dataPath变量