Skip to main content

Get live, population, geography, projected, and historical data from around the world.

Project description

Worldometer package logo
Get live, population, geography, projected, and historical data from around the world.


Metadata
PyPI - Version Total Downloads License MIT

Status
PyPI - Status Documentation Status

Index

About

The worldometer package accesses various counters and live data available throughout the worldometers.info website and provides them through simple and self-describing classes, methods and attributes.

Access data on:

  • The world 🌍
  • Population 👥
  • Geography 🗺️
  • Projections 🔮
  • Historical 📜

Install

Use pip to install the worldometer package:

$ pip install worldometer

Documentation

See the docs for more information and its API at: worldometer.readthedocs.io

Demo

[!NOTE] The first time you run any function/method or class, it will download Chromium to ~/.local/share/pyppeteer directory. It only happens once. After, it will only open the chromium to render the contents of worldometers.info.

Get the data from the live counters available on the homepage:

>>> from worldometer.world import WorldCounters

>>> wc = WorldCounters()

>>> wc.world_population.current_population
8065299074

>>> wc.government_and_economics.computers_produced_this_year
180248430

>>> wc.society_and_media.internet_users_in_the_world_today
5895566559

Reload data to get the latest:

>>> wc.reload_data()
>>> wc.world_population.current_population
8065300592

Get help and view information about mapped sections:

>>> help(wc)

worldometers.info

Worldometer is run by an international team of developers, researchers, and volunteers with the goal of making world statistics available in a thought-provoking and time relevant format to a wide audience around the world. It is published by a small and independent digital media company based in the United States. We have no political, governmental, or corporate affiliation. Furthermore, we have no investors, donors, grants, or backers of any type. We are completely independent and self-financed through automated programmatic advertising sold in real time on multiple ad exchanges.

worldometers.info/about

Data Sources

[adapted]: worldometers.info collects its statistics and data from the most reputable national and international organizations, including the United Nations, the World Health Organization, the Food and Agriculture Organization, OECD and others.

Each Worldometer counter has its specific set of sources, which are listed on its dedicated page (accessible by clicking on the counter text link, when available).

Data, estimates, and projections displayed on worldometers.info counters are for the most part provided by organizations included in the following list of United Nations Statistics Division's partners.

worldometers.info/sources

Contributions

All contributions are welcome!

Found a problem, want to give a tip? open an issue

Do you have a solution to the problem? Send me a PR

Did you like this project? Click on the star ⭐

License

This project is using the MIT license, see in 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

worldometer-2.0.0.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

worldometer-2.0.0-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file worldometer-2.0.0.tar.gz.

File metadata

  • Download URL: worldometer-2.0.0.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for worldometer-2.0.0.tar.gz
Algorithm Hash digest
SHA256 984cde962f3ddd2961cf72e93e01a3614559506f53327aef9b8db93ed5fd7e8f
MD5 6e72b144d243bef34c56833461d13aea
BLAKE2b-256 2883cfb6d529b34678d9fa5b31c1385e6e4dbf1951eb18679ad8c9ae7a5df1d8

See more details on using hashes here.

File details

Details for the file worldometer-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: worldometer-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for worldometer-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35d38d08b8cf9dc56d1ce0344da76da4c9ea96eebad93e30025a8319e55fb589
MD5 72784425a2ee88b4fe1be6138a05f72c
BLAKE2b-256 c110d7f08ed2cb6c0fc1138885a9fb18b8f2d8dfe078067ef2b9d439e2a905c4

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