Skip to main content

an unofficial api for grabbing data from cp.sk

Project description

python-cpsk-api travis

Simple python api for grabbing data from cp.sk

Installation

Available on pypi

Running $ pip install cpsk will get the package installed

Usage

import cpsk
drive = cpsk.get_routes('Bratislava', 'Praha', **kwargs)

Available kwargs

parameter type description
vehicle string Vehicle to travel with. Default vlakbus. Available: vlak, bus, vlakbusmhd.
time string Departure time. Defaults to current time.
date string Departure date. Defaults to current date.
direct boolean Whether to look only for direct routes. Defaults to False.

Beware that by using this you might be violating cp.sk ToS

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

cpsk-0.2.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

cpsk-0.2.1-py3-none-any.whl (5.1 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