Global FirePower Scraper
Project description
Global Fire Power Scraper
How to use it ?
pip install globalfirepower-scraper
from globalfirepower import GlobalFirePowerScraper
gfi_scraper = GlobalFirePowerScraper()
print(gfi_scraper.get_armies_information())
Exemple of output:
rank name power_index progress id Population ... Fit-for-Service Reaching Mil Age Annually Tot Military Personnel (est.) Active Personnel Reserve Personnel Paramilitary Total
0 1 United States 0.0453 up united-states-of-america 3 ... 122274415 4354979 1832000 1390000 442000 0
1 2 Russia 0.0501 up russia 9 ... 46681219 1280887 1350000 850000 250000 250000
2 3 China 0.0511 up china 1 ... 619268690 19570568 3134000 2000000 510000 624000
3 4 India 0.0979 up india 2 ... 496891621 22768619 5132000 1450000 1155000 2527000
4 5 Japan 0.1195 up japan 11 ... 43391178 1122186 309000 240000 55000 14000
.. ... ... ... ... ... ... ... ... ... ... ... ... ...
137 138 Liberia 8.5213 stable liberia 113 ... 1835339 62568 2000 2000 0 0
138 139 Somalia 11.8854 down somalia 72 ... 1669060 120946 17500 17500 0 0
139 140 Kosovo 13.9136 up kosovo 134 ... 727657 17417 6500 3500 3000 0
140 141 Bhutan 35.8958 down bhutan 138 ... 118324 4287 8000 8000 0 0
141 142 Iceland 78.6623 stable iceland 142 ... 48070 1779 0 0 0 0
[142 rows x 60 columns]
Deploy upgrade on PyPi
# Build
python setup.py sdist bdist_wheel
twine upload dist/*
# Test
python -m pip install -e .
python
>>> from globalfirepower import GlobalFirePowerScraper
>>> gfi_scraper = GlobalFirePowerScraper()
>>> print(gfi_scraper.get_armies_information())
LICENCE
This works is under MIT License.
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
Built Distribution
File details
Details for the file globalfirepower-scraper-0.2.1.tar.gz
.
File metadata
- Download URL: globalfirepower-scraper-0.2.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f61392de8506caed8245f7208a868f4166056e9346e1a0627d6db39e3d9dbe9d |
|
MD5 | 1e2b04dbaac681c028b1d4e25fdbcd0e |
|
BLAKE2b-256 | deb77cd8e85760e8bbb4864086fa0987969b3ae8a229cbff8169f8938f5b6a3c |
File details
Details for the file globalfirepower_scraper-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: globalfirepower_scraper-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa7aa330f2f923ab50f61348598953a26f5de06aae368102e784a2b991e6a15c |
|
MD5 | 482a83716c7014e6d17a3399b8f34f53 |
|
BLAKE2b-256 | 0260e9d1f5b8800f8966666011282d41f4e15747bfa6935aa8adff69ce3e2219 |