Skip to main content

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

globalfirepower-scraper-0.2.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

globalfirepower_scraper-0.2.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file globalfirepower-scraper-0.2.1.tar.gz.

File metadata

File hashes

Hashes for globalfirepower-scraper-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f61392de8506caed8245f7208a868f4166056e9346e1a0627d6db39e3d9dbe9d
MD5 1e2b04dbaac681c028b1d4e25fdbcd0e
BLAKE2b-256 deb77cd8e85760e8bbb4864086fa0987969b3ae8a229cbff8169f8938f5b6a3c

See more details on using hashes here.

File details

Details for the file globalfirepower_scraper-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for globalfirepower_scraper-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa7aa330f2f923ab50f61348598953a26f5de06aae368102e784a2b991e6a15c
MD5 482a83716c7014e6d17a3399b8f34f53
BLAKE2b-256 0260e9d1f5b8800f8966666011282d41f4e15747bfa6935aa8adff69ce3e2219

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page