Worldometer Scraper: Populasi dan Usia Median dalam Tabel
Pilih daftar populasi Worldometer dan dapatkan populasi, perubahan tahunan, serta usia median setiap negara dalam bentuk tabel.
Mulai gratis: 1.000 kredit, tanpa kartu, tanpa instalasi.
Tentang Worldometers
Temukan apa yang ditawarkan Worldometers dan data berharga apa yang dapat diekstrak.
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.

Mengapa Melakukan Scraping Worldometers?
Temukan nilai bisnis dan kasus penggunaan untuk ekstraksi data dari Worldometers.
Real-Time Metric Monitoring
Scrape live counters to track second-by-second changes in global population, births, and deaths for time-sensitive reporting.
Centralized Global Health Data
Extract comprehensive health statistics for over 200 countries from a single source, saving hours of manual data collection from local government sites.
Historical Trend Benchmarking
Capture daily or hourly snapshots of world indicators to build custom historical datasets for demographic and economic trend analysis.
Macro-Economic Signal Tracking
Monitor global energy consumption, car production, and government spending as leading indicators for financial market forecasting.
Educational and Research Datasets
Gather clean, tabular data for academic papers, student projects, or infographics regarding global environmental and social shifts.
Automated News Feed Integration
Feed live global statistics directly into automated news tickers or social media bots for real-time public interest updates.
Tantangan Scraping
Tantangan teknis yang mungkin Anda hadapi saat melakukan scraping Worldometers.
Dynamic JavaScript Rendering
The site uses internal scripts (like RTSp.js) to update counters in real-time, requiring a scraper that can execute JavaScript to capture accurate values.
Aggressive 403 Forbidden Errors
Worldometer blocks most standard bot requests that lack realistic browser headers, specifically targeting missing User-Agent and Accept-Language strings.
Complex Table Architectures
Data tables often contain hidden rows for 'Yesterday' or 'Total' aggregates that use duplicate IDs, making simple CSS selector targeting difficult.
Cloudflare and Rate Limiting
High-frequency requests quickly trigger Cloudflare protection, resulting in CAPTCHAs or temporary IP bans if requests aren't properly distributed.
Numeric Data Sanitization
All data points contain formatting characters like commas, plus signs, and spaces that must be programmatically cleaned before the data is useful for analysis.
Scrape Worldometers dengan AI
Tanpa koding. Ekstrak data dalam hitungan menit dengan otomatisasi berbasis AI.
Cara Kerjanya
Jelaskan apa yang Anda butuhkan
Beritahu AI data apa yang ingin Anda ekstrak dari Worldometers. Cukup ketik dalam bahasa sehari-hari — tanpa kode atau selektor.
AI mengekstrak data
Kecerdasan buatan kami menjelajahi Worldometers, menangani konten dinamis, dan mengekstrak persis apa yang Anda minta.
Dapatkan data Anda
Terima data bersih dan terstruktur siap diekspor sebagai CSV, JSON, atau dikirim langsung ke aplikasi Anda.
Mengapa menggunakan AI untuk scraping
Web Scraper Tanpa Kode untuk Worldometers
Alternatif klik-dan-pilih untuk scraping berbasis AI
Beberapa alat tanpa kode seperti Browse.ai, Octoparse, Axiom, dan ParseHub dapat membantu Anda melakukan scraping Worldometers tanpa menulis kode. Alat-alat ini biasanya menggunakan antarmuka visual untuk memilih data, meskipun mungkin kesulitan dengan konten dinamis kompleks atau tindakan anti-bot.
Alur Kerja Umum dengan Alat Tanpa Kode
Tantangan Umum
Kurva pembelajaran
Memahami selector dan logika ekstraksi membutuhkan waktu
Selector rusak
Perubahan situs web dapat merusak seluruh alur kerja
Masalah konten dinamis
Situs berbasis JavaScript memerlukan solusi yang kompleks
Keterbatasan CAPTCHA
Sebagian besar alat memerlukan intervensi manual untuk CAPTCHA
Pemblokiran IP
Scraping agresif dapat menyebabkan IP Anda diblokir
Contoh Kode
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}')Kapan Digunakan
Terbaik untuk halaman HTML statis di mana konten dimuat di sisi server. Pendekatan tercepat dan paling sederhana ketika rendering JavaScript tidak diperlukan.
Kelebihan
- ●Eksekusi tercepat (tanpa overhead browser)
- ●Konsumsi sumber daya terendah
- ●Mudah diparalelkan dengan asyncio
- ●Bagus untuk API dan halaman statis
Keterbatasan
- ●Tidak dapat mengeksekusi JavaScript
- ●Gagal pada SPA dan konten dinamis
- ●Mungkin kesulitan dengan sistem anti-bot kompleks
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()Kapan Digunakan
Gunakan ketika konten dimuat secara dinamis melalui JavaScript, atau ketika Anda perlu berinteraksi dengan halaman (klik, scroll, isi formulir).
Kelebihan
- ●Mengeksekusi JavaScript seperti browser asli
- ●Menangani SPA dan konten dinamis
- ●Penghindaran anti-bot lebih baik dengan plugin stealth
- ●Dapat mengambil screenshot dan PDF
Keterbatasan
- ●Lebih lambat dari permintaan HTTP
- ●Penggunaan memori/CPU lebih tinggi
- ●Pengaturan lebih kompleks
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()
}Kapan Digunakan
Ideal untuk proyek crawling skala besar yang perlu melakukan scraping ribuan halaman. Dukungan bawaan untuk pembatasan kecepatan, percobaan ulang, dan pipeline data.
Kelebihan
- ●Dibangun untuk skala (jutaan halaman)
- ●Throttling permintaan otomatis
- ●Pipeline ekspor data bawaan
- ●Sistem middleware untuk proxy/header
Keterbatasan
- ●Kurva pembelajaran lebih curam
- ●Berlebihan untuk proyek kecil
- ●Tidak ada rendering JavaScript native
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();
})();Kapan Digunakan
Pilih ini jika Anda berada di ekosistem Node.js/JavaScript atau membutuhkan integrasi erat dengan alat frontend.
Kelebihan
- ●Dukungan JavaScript/TypeScript native
- ●Akses Chrome DevTools Protocol
- ●Ekosistem dan komunitas besar
- ●Bagus untuk proyek berat JS
Keterbatasan
- ●Hanya Chrome (vs multi-browser Playwright)
- ●Overhead serupa dengan Playwright
- ●Opsi stealth kurang matang
Apa yang Dapat Anda Lakukan Dengan Data Worldometers
Jelajahi aplikasi praktis dan wawasan dari data Worldometers.
Public Health Monitoring Dashboards
Healthcare organizations can create real-time visualizations to track the spread of infectious diseases across borders.
Cara mengimplementasikan:
- 1Scrape health statistic tables every hour
- 2Clean and format the data into a structured CSV or JSON file
- 3Connect the data file to a dashboard tool like Power BI for live updates
Gunakan Automatio untuk mengekstrak data dari Worldometers dan membangun aplikasi ini tanpa menulis kode.
Demographic Growth Analysis
Urban planners and economists can use population growth rates to predict future resource needs and infrastructure development.
Cara mengimplementasikan:
- 1Extract population and density metrics for specific regions
- 2Calculate growth velocity by comparing snapshots over several months
- 3Correlate population density with local economic indicators
Gunakan Automatio untuk mengekstrak data dari Worldometers dan membangun aplikasi ini tanpa menulis kode.
Environmental Impact Reporting
Non-profits can track real-time CO2 emissions and forest loss to create impactful climate change awareness campaigns.
Cara mengimplementasikan:
- 1Scrape the 'Environment' section of Worldometers daily
- 2Archive the data to build a longitudinal dataset of emission rates
- 3Generate automated weekly reports for social media and newsletters
Gunakan Automatio untuk mengekstrak data dari Worldometers dan membangun aplikasi ini tanpa menulis kode.
Automated Financial Intelligence
Investors can monitor government spending and economic metrics as proxy indicators for national economic health.
Cara mengimplementasikan:
- 1Target specific economic counters like 'Public Education Expenditure'
- 2Export data to a central database for cross-referencing with market performance
- 3Set up alerts for significant deviations in global spending patterns
Gunakan Automatio untuk mengekstrak data dari Worldometers dan membangun aplikasi ini tanpa menulis kode.
Educational Data Visualizations
Educators can use live global data to create interactive statistics lessons for students using real-world numbers.
Cara mengimplementasikan:
- 1Scrape diverse metrics across health, energy, and population
- 2Provide students with clean datasets for classroom analysis projects
- 3Use the live counters to demonstrate the concept of 'rate of change'
Gunakan Automatio untuk mengekstrak data dari Worldometers dan membangun aplikasi ini tanpa menulis kode.
Tingkatkan alur kerja Anda dengan Otomatisasi AI
Automatio menggabungkan kekuatan agen AI, otomatisasi web, dan integrasi cerdas untuk membantu Anda mencapai lebih banyak dalam waktu lebih singkat.
Tips Pro untuk Scraping Worldometers
Saran ahli untuk ekstraksi data yang sukses dari Worldometers.
Target Stable rel Attributes
Instead of volatile CSS classes, target elements using the 'rel' attribute (e.g., [rel='current_population']) which the site uses for script-based updates.
Filter Hidden Table Rows
When scraping tables, check the 'style' or 'class' attributes to exclude rows that are hidden or contain continent-level summaries to avoid data duplication.
Implement Staggered Wait Times
Allow at least 2-3 seconds after the page loads for the JavaScript counters to synchronize with the server before extracting the text.
Clean Data During Extraction
Use formatting tools to strip characters like ',' and '+' at the source so your exported CSV or JSON contains pure numeric values.
Monitor for ID Changes
Worldometer occasionally updates its table IDs (e.g., from 'main_table' to 'main_table_countries_today'), so set up alerts for selector failures.
Use Residential Proxies
For high-frequency polling of real-time stats, use residential proxies to mimic legitimate global traffic and avoid Cloudflare flags.
Terkait Web Scraping

GitHub Scraper: Repos, Stars and Languages in a table

How to Scrape Pollen.com: Local Allergy Data Extraction Guide

How to Scrape Britannica: Educational Data Web Scraper

How to Scrape Weather.com: A Guide to Weather Data Extraction

Wikipedia Scraper: Titles, Sizes and Edit Dates in a table

How to Scrape Poll-Maker: A Comprehensive Web Scraping Guide

How to Scrape Maven.com for Course and Instructor Data

MakerWorld Scraper: Models, Downloads and Likes in a table
Pertanyaan yang Sering Diajukan tentang Worldometers
Temukan jawaban untuk pertanyaan umum tentang Worldometers
Apakah Worldometer memiliki API resmi?
Tidak. Worldometer tidak menyediakan API publik atau program developer untuk tabel-tabelnya, dan kontak perizinannya hanya untuk penghitung langsung (live counters). Agen membaca halaman publik yang sama seperti yang Anda lihat di browser.
Data apa saja yang dapat diambil agen dari Worldometer?
Daftar negara dengan populasi, perubahan tahunan, perubahan bersih, kepadatan, luas daratan, migran, tingkat kesuburan, usia median, porsi perkotaan, dan porsi dunia. Agen ini juga dapat membaca baris riwayat dan prakiraan di setiap halaman negara serta daftar seperti kota-kota terbesar di AS.
Apakah saya memerlukan akun untuk melihat data ini?
Tidak. Halaman populasi dan negara di Worldometer bersifat publik dan tidak memerlukan login. Untuk halaman yang berada di balik login Anda di situs lain, agen bekerja di dalam browser Chrome Anda sendiri yang sudah dalam keadaan masuk (logged in).
Apa yang terjadi jika Worldometer menampilkan CAPTCHA atau memblokir halaman?
Agen akan berhenti dan memberi tahu Anda halaman mana yang tidak dapat dibaca. Agen tidak dapat menyelesaikan CAPTCHA. Anda dapat menjalankan tugas kembali nanti.
Bagaimana cara mendapatkan data angkanya lagi setiap bulan?
Simpan tugas untuk dijalankan sesuai jadwal dan kirimkan baris-baris data ke Google Sheet. Worldometer memperbarui estimasi tahunannya seiring waktu, sehingga setiap kali dijalankan akan mengambil data yang paling kini.