-
Notifications
You must be signed in to change notification settings - Fork 0
tanvach/timatic-scraper
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Timatic Scraper =============== TimaticScraper.py First, change the folder path to where you want the files to be saved! Timatic contains roughly 50,000 combinations of national and destination, and is probably the most comprehensive Visa requirement database online. This script simply download all country code combinations available on Timatic server. The files will be saved as HTML and needs further processing. Since this script does http requests repeatedly it is possible for Timatic to block your IP. To resolve this, use Tor and set up Socks proxy server locally, then uncomment two lines at the beginning of the script. For convenience, a cache of Timatic files is included (Timatic Files.zip) TimaticToSQLite.py Simply get text from html files and put into SQLite data base for much faster access. For convenience, a Timatic DB is included (Timatic.db) TimaticParser.py Attempt to parse Timatic texts to get simple Yes/No visa requirement. The code presented here is quite experiemental and errs on converative side (i.e. more false negatives). I appreciate any suggestions on replacing regex with something sane.
About
Scripts to scrape Timatic data
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published