Skip to main content

an unofficial api for grabbing data from cp.sk

Project description

# python-cpsk-api ![travis](https://travis-ci.org/Adman/python-cpsk-api.svg?branch=master)

Simple python api for grabbing data from cp.sk

## Installation

Available on [pypi](https://pypi.org/project/cpsk/)

Running $ pip install cpsk will get the package installed

## Usage

`python 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.

Files for cpsk, version 0.1.8
Filename, size File type Python version Upload date Hashes
Filename, size cpsk-0.1.8.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page