Using and downloading qqwry.dat, for Python 3.6+
Project description
qqwry-linux-python3
Linux下自动更新qqwry的工具
安装
pip3 install qqwry-linux-python3
更新 qqwry.dat
原理
-
从微信公众号文章中取出最新zip包地址并下载
-
解压zip得到setup.exe
-
解压setup.exe得到qqwry.dat
代码
>>> from qqwry.src import UpdateQQwry
>>> uq = UpdateQQwry('./qqwry.dat')
>>> uq.update()
/usr/local/bin/innoextract is valid
https://www.cz88.net/soft/H50VASDc3-2023-06-21.zip Downloading...
https://www.cz88.net/soft/H50VASDc3-2023-06-21.zip Download completed
copy /tmp/app/qqwry.dat to /root/.nali/qqwry.dat completed
True
使用 qqwry.dat
>>> from qqwry.src import QQwry
>>> qw = QQwry()
>>> qw.load_file('./qqwry.dat')
True
>>> print(qw.lookup('8.8.8.8'))
('美国加利福尼亚州圣克拉拉县山景市', '谷歌公司DNS服务器')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qqwry-linux-python3-0.0.6.tar.gz
(10.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qqwry-linux-python3-0.0.6.tar.gz.
File metadata
- Download URL: qqwry-linux-python3-0.0.6.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.16 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b31e49b2a4d92984b480841bbe4e81ec027ef2736f50cfbf1963d73f54a4f05f
|
|
| MD5 |
ab4b2aa175f0a3b2abbc4b2d972eb8a9
|
|
| BLAKE2b-256 |
b74a19fb2f413466271975c268fdeb6933fc85e0dc7e07401e5060a3381ae7d9
|
File details
Details for the file qqwry_linux_python3-0.0.6-py3-none-any.whl.
File metadata
- Download URL: qqwry_linux_python3-0.0.6-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.16 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ab4bea465370a7b74fe53e511fcbed362d44a7c349b3225613e00b6a173f9ee
|
|
| MD5 |
96a6af114ab84369208ba0c8975a5dc8
|
|
| BLAKE2b-256 |
5e8bdbdcd64122d830e517fd0a7c3c3a8bbfcea42709a5bbc15c1ad1ed99bc01
|