Efficiently download HIBP new pwned password data by hash-prefix for a local-copy
Project description
hibp-downloader
This is a Python implementation of PwnedPasswordsDownloader that is more download efficient and provides additional useful functionality
- Automatically only download prefix-chunks that have changed since the last download
- Ability to start, stop and re-start without loss of data already collected
- Ability to start and stop at named hash positions
- Per prefix file metadata in JSON format for easy data reuse
Install
pip install --upgrade hibp-downloader
Usage
Runtime Logs
Sample download activity log
2023-07-31T03:22:45+1000 | INFO | hibp-downloader | prefix=e585f source=[lc:265201 et:0 rc:722148 ro:3 xx:0] runtime_rate=[11.2MBit/s 86req/s ~71005H/s] runtime=2.33hr download=11748.0MB
2023-07-31T03:22:48+1000 | INFO | hibp-downloader | prefix=e5877 source=[lc:265201 et:0 rc:722268 ro:3 xx:0] runtime_rate=[11.2MBit/s 86req/s ~70998H/s] runtime=2.33hr download=11750.0MB
2023-07-31T03:22:50+1000 | INFO | hibp-downloader | prefix=f5837 source=[lc:265201 et:0 rc:722388 ro:3 xx:0] runtime_rate=[11.2MBit/s 86req/s ~70992H/s] runtime=2.33hr download=11751.9MB
- 86 requests per second to api.pwnedpasswords.com
- 265,201 prefix files from (
lc
) local-cache; 722,388 from (rc
) remote-cache; 3 from (ro
) remote-origin; 0 failed (xx
) download - estimated ~70k hash values downloaded per second
- 11.5GB (11,751MB) downloaded in 2.3 hours
Source
Issues
Copyright
- Copyright © 2023 Threat Patrols Pty Ltd <contact@threatpatrols.com>
- Copyright © 2023 Nicholas de Jong <contact@nicholasdejong.com>
All rights reserved.
License
- BSD-3-Clause - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hibp_downloader-0.1.3.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for hibp_downloader-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d40639aac98babb9119bbd85953ec4c1509d2fcfe2d4cff69f9a47f9eaa97e0e |
|
MD5 | ba9b050d368f364d037d6ba5a0e6e417 |
|
BLAKE2b-256 | 033f79c12ea46d066d3e39f907a9363fdcfae09a2fda860bb1b43fd9b5e0c2e0 |