Scrapes the visa requirements for citizens of all countries and creates arrays of countries for each visa type. This data is used by Nomad Couple - https://nomadcouple.vinaygopinath.me
required
: Visa requirednot-required
: Visa not required for a certain period, or freedom of movementevisa
: Electronic visa/Online visa/ETAon-arrival
: Visa on arrivalrefused
: Admission refused/Travel bannedunknown
: Visa status could not be parsed by this scraper
Scraping the Visa requirements for Polish citizens Wikipedia page creates dist/output/poland.json
with the JSON in the following format. (Countries that have a visa note available on Wikipedia may have a "note" property)
{
"required": [
{
"name": "Afghanistan"
},
{
"name": "Algeria"
},
...
],
"not-required": [
{
"name": "Albania",
"note": "90 days; ID card valid"
},
{
"name": "Andorra",
"note": "ID card valid"
},
...
],
"evisa": [
{
"name": "Australia",
"note": "90 days on each visit in 12-month period if granted"
},
{
"name": "Ivory Coast",
"note": "3 months; eVisa holders must arrive via Port Bouet Airport."
},
...
],
"on-arrival": [
{
"name": "Bahrain",
"note": "14 days. Visa is also obtainable online."
},
{
"name": "Bangladesh",
"note": "30 days"
},
...
],
"refused": [],
"unknown": []
}
npm run scrape
MIT Licence