How to Scrape Worldometers for Real-Time Global Statistics

Learn how to scrape Worldometers to extract real-time population data, COVID-19 statistics, and global environmental metrics for research and analysis.

Coverage:GlobalInternationalUSAEuropeAsia
Available Data5 fields
TitleLocationPosting DateCategoriesAttributes
All Extractable Fields
Country NameTotal PopulationYearly Change %Net ChangeDensity (P/Km²)Land Area (Km²)Migrants (net)Fertility RateMedian AgeUrban Population %World ShareTotal COVID CasesNew CasesTotal DeathsNew DeathsTotal RecoveredActive CasesSerious/Critical CasesTotal TestsCO2 Emissions
Technical Requirements
JavaScript Required
No Login
No Pagination
No Official API
Anti-Bot Protection Detected
Rate LimitingIP BlockingUser-Agent Filtering403 Forbidden ErrorsCloudflare

Anti-Bot Protection Detected

Rate Limiting
Limits requests per IP/session over time. Can be bypassed with rotating proxies, request delays, and distributed scraping.
IP Blocking
Blocks known datacenter IPs and flagged addresses. Requires residential or mobile proxies to circumvent effectively.
User-Agent Filtering
403 Forbidden Errors
Cloudflare
Enterprise-grade WAF and bot management. Uses JavaScript challenges, CAPTCHAs, and behavioral analysis. Requires browser automation with stealth settings.

About Worldometers

Learn what Worldometers offers and what valuable data can be extracted from it.

Comprehensive Global Data Platform

Worldometers is a highly regarded reference website that provides real-time statistics for a vast array of global topics. Operated by an international team of researchers and developers, it is widely recognized for its live counters and meticulously updated data tables. The platform serves as a critical resource for journalists, researchers, and government agencies who need current global data.

Diverse Data Categories

The website hosts data ranging from world population and government expenditures to environmental metrics and health statistics. During the global pandemic, it became a primary source for COVID-19 tracking, offering granular data on cases, deaths, and testing across hundreds of countries. This depth of information makes it a goldmine for those performing longitudinal studies.

Value of Scraping Worldometers

Scraping Worldometers allows developers and analysts to build real-time dashboards and perform historical trend analysis. Because the site aggregates data from hundreds of official sources, extracting this information programmatically saves thousands of hours of manual collection, enabling automated reporting and sophisticated data-driven insights.

About Worldometers

Why Scrape Worldometers?

Discover the business value and use cases for extracting data from Worldometers.

Monitor public health trends and pandemic metrics globally

Conduct academic research on demographics and population growth

Automate data-driven news reporting for global milestones

Track environmental impacts and carbon emission statistics

Perform competitive intelligence and market trend analysis

Maintain historical archives of real-time statistical counters

Scraping Challenges

Technical challenges you may encounter when scraping Worldometers.

Handling 403 Forbidden errors caused by missing browser headers

Extracting dynamic live counters that require JavaScript rendering

Navigating complex nested HTML table structures with multiple tbody tags

Managing aggressive IP blocking during high-frequency data polling

Cleaning numeric data containing non-standard characters like commas and plus signs

Scrape Worldometers with AI

No coding required. Extract data in minutes with AI-powered automation.

How It Works

1

Describe What You Need

Tell the AI what data you want to extract from Worldometers. Just type it in plain language — no coding or selectors needed.

2

AI Extracts the Data

Our artificial intelligence navigates Worldometers, handles dynamic content, and extracts exactly what you asked for.

3

Get Your Data

Receive clean, structured data ready to export as CSV, JSON, or send directly to your apps and workflows.

Why Use AI for Scraping

Bypass 403 Forbidden errors automatically with built-in proxy and User-Agent rotation
Handle dynamic JavaScript-rendered counters without manual browser configuration
Use no-code selector tools to easily target specific columns in large tables
Schedule automated runs to capture data at precise intervals for historical logging
Export directly to Google Sheets or JSON for instant data visualization
No credit card requiredFree tier availableNo setup needed

AI makes it easy to scrape Worldometers without writing any code. Our AI-powered platform uses artificial intelligence to understand what data you want — just describe it in plain language and the AI extracts it automatically.

How to scrape with AI:
  1. Describe What You Need: Tell the AI what data you want to extract from Worldometers. Just type it in plain language — no coding or selectors needed.
  2. AI Extracts the Data: Our artificial intelligence navigates Worldometers, handles dynamic content, and extracts exactly what you asked for.
  3. Get Your Data: Receive clean, structured data ready to export as CSV, JSON, or send directly to your apps and workflows.
Why use AI for scraping:
  • Bypass 403 Forbidden errors automatically with built-in proxy and User-Agent rotation
  • Handle dynamic JavaScript-rendered counters without manual browser configuration
  • Use no-code selector tools to easily target specific columns in large tables
  • Schedule automated runs to capture data at precise intervals for historical logging
  • Export directly to Google Sheets or JSON for instant data visualization

No-Code Web Scrapers for Worldometers

Point-and-click alternatives to AI-powered scraping

Several no-code tools like Browse.ai, Octoparse, Axiom, and ParseHub can help you scrape Worldometers. These tools use visual interfaces to select elements, but they come with trade-offs compared to AI-powered solutions.

Typical Workflow with No-Code Tools

1
Install browser extension or sign up for the platform
2
Navigate to the target website and open the tool
3
Point-and-click to select data elements you want to extract
4
Configure CSS selectors for each data field
5
Set up pagination rules to scrape multiple pages
6
Handle CAPTCHAs (often requires manual solving)
7
Configure scheduling for automated runs
8
Export data to CSV, JSON, or connect via API

Common Challenges

Learning curve

Understanding selectors and extraction logic takes time

Selectors break

Website changes can break your entire workflow

Dynamic content issues

JavaScript-heavy sites often require complex workarounds

CAPTCHA limitations

Most tools require manual intervention for CAPTCHAs

IP blocking

Aggressive scraping can get your IP banned

No-Code Web Scrapers for Worldometers

Several no-code tools like Browse.ai, Octoparse, Axiom, and ParseHub can help you scrape Worldometers. These tools use visual interfaces to select elements, but they come with trade-offs compared to AI-powered solutions.

Typical Workflow with No-Code Tools
  1. Install browser extension or sign up for the platform
  2. Navigate to the target website and open the tool
  3. Point-and-click to select data elements you want to extract
  4. Configure CSS selectors for each data field
  5. Set up pagination rules to scrape multiple pages
  6. Handle CAPTCHAs (often requires manual solving)
  7. Configure scheduling for automated runs
  8. Export data to CSV, JSON, or connect via API
Common Challenges
  • Learning curve: Understanding selectors and extraction logic takes time
  • Selectors break: Website changes can break your entire workflow
  • Dynamic content issues: JavaScript-heavy sites often require complex workarounds
  • CAPTCHA limitations: Most tools require manual intervention for CAPTCHAs
  • IP blocking: Aggressive scraping can get your IP banned

Code Examples

import requests
from bs4 import BeautifulSoup

# Headers are required to prevent a 403 Forbidden error
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36'
}

url = 'https://www.worldometers.info/coronavirus/'

try:
    response = requests.get(url, headers=headers)
    response.raise_for_status()
    soup = BeautifulSoup(response.text, 'html.parser')
    
    # Locate the main statistics table
    table = soup.find('table', id='main_table_countries_today')
    rows = table.find_all('tr')[9:20] # Skipping header and aggregate rows
    
    for row in rows:
        cells = row.find_all('td')
        if len(cells) > 1:
            country = cells[1].text.strip()
            cases = cells[2].text.strip()
            print(f'Country: {country} | Total Cases: {cases}')
except Exception as e:
    print(f'Scraping failed: {e}')

When to Use

Best for static HTML pages where content is loaded server-side. The fastest and simplest approach when JavaScript rendering isn't required.

Advantages

  • Fastest execution (no browser overhead)
  • Lowest resource consumption
  • Easy to parallelize with asyncio
  • Great for APIs and static pages

Limitations

  • Cannot execute JavaScript
  • Fails on SPAs and dynamic content
  • May struggle with complex anti-bot systems

How to Scrape Worldometers with Code

Python + Requests
import requests
from bs4 import BeautifulSoup

# Headers are required to prevent a 403 Forbidden error
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36'
}

url = 'https://www.worldometers.info/coronavirus/'

try:
    response = requests.get(url, headers=headers)
    response.raise_for_status()
    soup = BeautifulSoup(response.text, 'html.parser')
    
    # Locate the main statistics table
    table = soup.find('table', id='main_table_countries_today')
    rows = table.find_all('tr')[9:20] # Skipping header and aggregate rows
    
    for row in rows:
        cells = row.find_all('td')
        if len(cells) > 1:
            country = cells[1].text.strip()
            cases = cells[2].text.strip()
            print(f'Country: {country} | Total Cases: {cases}')
except Exception as e:
    print(f'Scraping failed: {e}')
Python + Playwright
from playwright.sync_api import sync_playwright

def run_scraper():
    with sync_playwright() as p:
        # Launch a headless browser to handle dynamic counters
        browser = p.chromium.launch(headless=True)
        page = browser.new_page()
        page.goto('https://www.worldometers.info/')
        
        # Wait for the population counter element to be visible
        page.wait_for_selector('.r-counter span')
        
        # Extract the live text from the counter
        current_pop = page.inner_text('.r-counter span')
        print(f'Current World Population: {current_pop}')
        
        browser.close()

run_scraper()
Python + Scrapy
import scrapy

class WorldometerSpider(scrapy.Spider):
    name = 'world_spider'
    start_urls = ['https://www.worldometers.info/coronavirus/']

    def parse(self, response):
        # Use CSS selectors to target the table rows
        rows = response.css('table#main_table_countries_today tr')
        for row in rows[9:50]: # Process the top 40 countries
            yield {
                'country': row.css('td:nth-child(2) ::text').get(),
                'total_cases': row.css('td:nth-child(3) ::text').get(),
                'total_deaths': row.css('td:nth-child(5) ::text').get(),
                'new_cases': row.css('td:nth-child(4) ::text').get()
            }
Node.js + Puppeteer
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  
  // Set User-Agent to avoid detection
  await page.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36');
  
  await page.goto('https://www.worldometers.info/world-population/population-by-country/');
  
  const countryData = await page.evaluate(() => {
    const rows = Array.from(document.querySelectorAll('table#example2 tr'));
    return rows.slice(1, 11).map(row => ({
      country: row.cells[1]?.innerText,
      population: row.cells[2]?.innerText
    }));
  });

  console.log(countryData);
  await browser.close();
})();

What You Can Do With Worldometers Data

Explore practical applications and insights from Worldometers data.

Public Health Monitoring Dashboards

Healthcare organizations can create real-time visualizations to track the spread of infectious diseases across borders.

How to implement:

  1. 1Scrape health statistic tables every hour
  2. 2Clean and format the data into a structured CSV or JSON file
  3. 3Connect the data file to a dashboard tool like Power BI for live updates

Use Automatio to extract data from Worldometers and build these applications without writing code.

What You Can Do With Worldometers Data

  • Public Health Monitoring Dashboards

    Healthcare organizations can create real-time visualizations to track the spread of infectious diseases across borders.

    1. Scrape health statistic tables every hour
    2. Clean and format the data into a structured CSV or JSON file
    3. Connect the data file to a dashboard tool like Power BI for live updates
  • Demographic Growth Analysis

    Urban planners and economists can use population growth rates to predict future resource needs and infrastructure development.

    1. Extract population and density metrics for specific regions
    2. Calculate growth velocity by comparing snapshots over several months
    3. Correlate population density with local economic indicators
  • Environmental Impact Reporting

    Non-profits can track real-time CO2 emissions and forest loss to create impactful climate change awareness campaigns.

    1. Scrape the 'Environment' section of Worldometers daily
    2. Archive the data to build a longitudinal dataset of emission rates
    3. Generate automated weekly reports for social media and newsletters
  • Automated Financial Intelligence

    Investors can monitor government spending and economic metrics as proxy indicators for national economic health.

    1. Target specific economic counters like 'Public Education Expenditure'
    2. Export data to a central database for cross-referencing with market performance
    3. Set up alerts for significant deviations in global spending patterns
  • Educational Data Visualizations

    Educators can use live global data to create interactive statistics lessons for students using real-world numbers.

    1. Scrape diverse metrics across health, energy, and population
    2. Provide students with clean datasets for classroom analysis projects
    3. Use the live counters to demonstrate the concept of 'rate of change'
More than just prompts

Supercharge your workflow with AI Automation

Automatio combines the power of AI agents, web automation, and smart integrations to help you accomplish more in less time.

AI Agents
Web Automation
Smart Workflows

Pro Tips for Scraping Worldometers

Expert advice for successfully extracting data from Worldometers.

Mimic a real browser by always including a modern User-Agent and 'Accept-Language' in your request headers.

Implement a random delay between requests to mimic human behavior and avoid triggering rate limits.

Target the specific 'tbody' ID as Worldometers often uses multiple hidden bodies for 'yesterday' and 'today' stats.

Use data cleaning functions to remove commas and '+' signs before attempting to convert string data to integers.

Utilize rotating residential proxies if you need to poll the site more than once every few minutes to avoid IP bans.

Check the site structure periodically, as the IDs for specific counters can change during site updates.

Testimonials

What Our Users Say

Join thousands of satisfied users who have transformed their workflow

Jonathan Kogan

Jonathan Kogan

Co-Founder/CEO, rpatools.io

Automatio is one of the most used for RPA Tools both internally and externally. It saves us countless hours of work and we realized this could do the same for other startups and so we choose Automatio for most of our automation needs.

Mohammed Ibrahim

Mohammed Ibrahim

CEO, qannas.pro

I have used many tools over the past 5 years, Automatio is the Jack of All trades.. !! it could be your scraping bot in the morning and then it becomes your VA by the noon and in the evening it does your automations.. its amazing!

Ben Bressington

Ben Bressington

CTO, AiChatSolutions

Automatio is fantastic and simple to use to extract data from any website. This allowed me to replace a developer and do tasks myself as they only take a few minutes to setup and forget about it. Automatio is a game changer!

Sarah Chen

Sarah Chen

Head of Growth, ScaleUp Labs

We've tried dozens of automation tools, but Automatio stands out for its flexibility and ease of use. Our team productivity increased by 40% within the first month of adoption.

David Park

David Park

Founder, DataDriven.io

The AI-powered features in Automatio are incredible. It understands context and adapts to changes in websites automatically. No more broken scrapers!

Emily Rodriguez

Emily Rodriguez

Marketing Director, GrowthMetrics

Automatio transformed our lead generation process. What used to take our team days now happens automatically in minutes. The ROI is incredible.

Jonathan Kogan

Jonathan Kogan

Co-Founder/CEO, rpatools.io

Automatio is one of the most used for RPA Tools both internally and externally. It saves us countless hours of work and we realized this could do the same for other startups and so we choose Automatio for most of our automation needs.

Mohammed Ibrahim

Mohammed Ibrahim

CEO, qannas.pro

I have used many tools over the past 5 years, Automatio is the Jack of All trades.. !! it could be your scraping bot in the morning and then it becomes your VA by the noon and in the evening it does your automations.. its amazing!

Ben Bressington

Ben Bressington

CTO, AiChatSolutions

Automatio is fantastic and simple to use to extract data from any website. This allowed me to replace a developer and do tasks myself as they only take a few minutes to setup and forget about it. Automatio is a game changer!

Sarah Chen

Sarah Chen

Head of Growth, ScaleUp Labs

We've tried dozens of automation tools, but Automatio stands out for its flexibility and ease of use. Our team productivity increased by 40% within the first month of adoption.

David Park

David Park

Founder, DataDriven.io

The AI-powered features in Automatio are incredible. It understands context and adapts to changes in websites automatically. No more broken scrapers!

Emily Rodriguez

Emily Rodriguez

Marketing Director, GrowthMetrics

Automatio transformed our lead generation process. What used to take our team days now happens automatically in minutes. The ROI is incredible.

Related Web Scraping

Frequently Asked Questions About Worldometers

Find answers to common questions about Worldometers