You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

cpsk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpsk

an unofficial api for grabbing data from cp.sk

0.2.2
Maintainers
1

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

parametertypedescription
vehiclestringVehicle to travel with. Default vlakbus. Available: vlak, bus, vlakbusmhd.
timestringDeparture time. Defaults to current time.
datestringDeparture date. Defaults to current date.
directbooleanWhether to look only for direct routes. Defaults to False.

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts