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.7.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.7.tar.gz.
File metadata
- Download URL: qqwry-linux-python3-0.0.7.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 |
c5bc29ac92e2af4de8eeda38e77bcf0837310d76ee45863399f0a5cab9817eac
|
|
| MD5 |
993795cef2138f002e5e91eba98fe66b
|
|
| BLAKE2b-256 |
67da3afa2a3934901c0e1f00a340cbec829b7fc4f0cf824e51aee0544db68a19
|
File details
Details for the file qqwry_linux_python3-0.0.7-py3-none-any.whl.
File metadata
- Download URL: qqwry_linux_python3-0.0.7-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 |
fb87e5f13048157e6cd6edb507f0a55fec663aa531a10f4d156ff7dee0c7e383
|
|
| MD5 |
4a4969b39387827790c97d645c15952d
|
|
| BLAKE2b-256 |
4c0fc30ef150fc9dba200cbd0315e1c4ccd4a5c90225cfc8b5693e7628a798a9
|