Skip to content

gcrbr/malatia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Malatìa

Interface Map

Tool to disappear at low cost and under mysterious circumstances.

This program searchs for low-cost trips on different carriers from a predetermined departure location to designated locations or otherwise offered by the carrier.

The results are viewable through an interface made with HTML, CSS and basic JavaScript.

This simply displays the contents of the data.json file in a readable table format.

Supported carriers

Ryanair FlixBus Italo Volotea Wizz Air Trenitalia Itabus easyJet

Note: Some carriers such as Itabus, Trenitalia and Italo, are only available in Italy.

Installation

The required dependencies are dateutil, requests and colorama, you can install them with the following command:

pip install python-dateutil requests colorama

Usage

To start the program:

python main.py

To run and view the interface you can use the parameter -i or --interface:

python main.py -i

You can see the other options by using the parameter -h or --help.

Population

NOTE: This feature is still in the testing phase.

Some carriers such as Flixbus and Itabus support automatic destination finding for your config file.

python populate.py -c <departing city>

The generated config file is "raw", it must be manually corrected for correct functioning.

Configuration

Within the config.json file it is possible to change:

  • The starting city from which to search for trips
  • The supported cities
  • The price cap for the trips
  • The time delay between searches (in seconds)

It is important to make sure that the city selected as the departure supports all the carriers used.

In short - you need to verify that for the given city, all fields within identifiers are properly filled.

Known Issues

(...)

Credits

Svein Kåre Gunnarson for the DotMatrix font

Technologies used

  • LeafletJS: Map interface
  • Waze: Geocoding
  • Chart.js: Data charts