Skip to content

Adman/python-cpsk-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An unofficial api for grabbing data from cp.sk

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages