Skip to main content

Simple package to obtain and parse train schedules from RENFE

Project description

Renfe Train Time

renfe-time scrapes and parses train schedules for RENFE trains in Spain. At the moment, only Asturias is supported

Usage

from RenfeTrainTime import RenfeTime as rt
from datetime import datetime
import pprint

table = rt.getTimeTable(
    rt.getStationCode( "Gijón" ),
    rt.getStationCode( "Oviedo" ),
    datetime.now(), "00", "26", False
)

pprint.pprint( table, indent = 4 )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RenfeTrainTime-0.3.1.tar.gz (1.3 kB view hashes)

Uploaded Source

Built Distribution

RenfeTrainTime-0.3.1-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page