Skip to main content

Flixbus API Class

This repository provides a Flixbus class which makes it very easy to programmatically search for options on Flixbus.

Usage

This will show you the cheapest bus connection between Cambridge and London in November 2023:

from flixbus import Flixbus

fb = Flixbus(['united-kingdom'])
cheapest = fb.get_cheapest_for_range("01-11-2023", "01-12-2023", "Cambridge", "London")

This will give the following result:

{'arrival_city_id': '40dfdfd8-8646-11e6-9066-549f350fcb0c',
 'arrival_date_time': '2023-11-01T07:20:00+00:00',
 'departure_city_id': '3665c7fe-fc24-4b50-9b52-2187944b362c',
 'departure_date_time': '2023-11-01T05:20:00+00:00',
 'duration': {'hours': 2, 'minutes': 0},
 'duration_str': '2h 0m',
 'price': 4.49}

Release files for flixbus 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for flixbus 1.0.7
File Interpreter ABI Platform
flixbus-1.0.7-py3-none-any.whl Python 3 none any Details

Release files / flixbus-1.0.7-py3-none-any.whl

Download URL flixbus-1.0.7-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d11d27e57787bb020a07b5ba4cba29cbb31fb96000573e57f410e0f1fdabe17
BLAKE2b-256 checksum
How to use checksums
971d7939e7bf212e586fb58b25c2208148e09478f9707e9e56b2bae2526b7859
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.7 This release

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page