Skip to content

gltrains/nre-dtd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nre-dtd

A tool for downloading data from the National Rail Enquiries' data feed.

This code is licensed under the WTFPL or the CC0 (at your discretion), but its output is not. Any NRE data included in the output of this program is subject to these terms and conditions.

Useful links

Get started

Get an account

Use the tool

From PyPI

  • Run python3 -m pip install nre-dtd.

From source

  • Run python3 -m pip install poetry if you have not got Poetry.
  • Run poetry init to set up the environment.
  • Run poetry shell to enter the environment.
  • Or, prepend poetry run -- to every command.

Examples

Get usage instructions

nre-dtd --help

Download everything

nre-dtd --fares <filename>.zip --routeing <filename>.zip --timetable <filename>.zip

This will ask you for a password. The downloaded files are zipped.

Supply the username and password on the command line

nre-dtd --username sarah@example.com --password "correct-horse-battery-staple" <...>

Powered by National Rail Enquiries

About

Download data from the NRE DTD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages