Skip to content

Instantly share code, notes, and snippets.

@bwbroersma
Created December 13, 2019 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwbroersma/0a82b0a05da2c34f9fea117bedeac501 to your computer and use it in GitHub Desktop.
Save bwbroersma/0a82b0a05da2c34f9fea117bedeac501 to your computer and use it in GitHub Desktop.
Scrape Schiphol for flights on a date: filter the HTML response for the JSON-LD output
curl 'https://www.schiphol.nl/en/departures/?datetime=2019-12-14&offset=[0-500:50]' -sSfA '' --compressed -H 'X-Requested-With: XMLHttpRequest' | pup 'script text{}' | jq -s .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment