Skip to content

oxfn/timezones-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python + Scrapy bot which helps to load the list of IANA timezones names from corresponding Wikipedia page and store it in any handy and machine-readable format supported by Scrapy.

It grabs the following fields:

  • Standardized name
  • Country code
  • Latitude / longitude
  • Timezone status (Canonical / Alias / Deprecated)
  • UTC offset
  • UTC offset for DST

Installation

  1. Initialize virtual environment

    python3 -m venv venv

  2. Activate virtual environment

    source venv/bin/activate

  3. Install required packages

    pip install -r requirements.txt

Usage

Generic usage

scrapy crawl wiki [-o file.<json|csv|xml|...>] [-a status=<all|canonical|alias|deprecated>]

About

Python scraper for timezone names

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages