Skip to main content

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.

Metadata

Release files for globalfirepower-scraper 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for globalfirepower-scraper 0.2.1
File Size Uploaded Provenance Actions
globalfirepower-scraper-0.2.1.tar.gz 4.0 kB Without provenance Details for globalfirepower-scraper-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for globalfirepower-scraper 0.2.1
File Interpreter ABI Platform Actions
globalfirepower_scraper-0.2.1-py3-none-any.whl Python 3 none any Details for globalfirepower_scraper-0.2.1-py3-none-any.whl

Total release size: 8.0 kB

Release files / globalfirepower-scraper-0.2.1.tar.gz

Download URL globalfirepower-scraper-0.2.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f61392de8506caed8245f7208a868f4166056e9346e1a0627d6db39e3d9dbe9d
BLAKE2b-256 checksum
How to use checksums
deb77cd8e85760e8bbb4864086fa0987969b3ae8a229cbff8169f8938f5b6a3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.1

Release files / globalfirepower_scraper-0.2.1-py3-none-any.whl

Download URL globalfirepower_scraper-0.2.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa7aa330f2f923ab50f61348598953a26f5de06aae368102e784a2b991e6a15c
BLAKE2b-256 checksum
How to use checksums
0260e9d1f5b8800f8966666011282d41f4e15747bfa6935aa8adff69ce3e2219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.1

Security for globalfirepower-scraper 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page