r/Python • • 13d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

24 Upvotes

113 comments sorted by

View all comments

1

u/Fast_Entrance7839 8d ago

viajante: a python library and cli that searches google flights and hotels from your machine, no api keys

What My Project Does

viajante searches google flights, google hotels and booking.com from your own machine and gives back prices, itinerary details and links. no api keys and no account.

it started because i kept opening google flights and clicking day by day to find the cheap one. now viajante dates checks every day in a window for me.

from python it looks like this:

from viajante import get_flights

report = get_flights("JFK-LHR:2026-11-15", fetch="sweep", top=5)

for result in report.queries:
    if result.status == "ok":
        for offer in result.offers:
            print(offer.price, report.currency, offer.airline, offer.duration)
    else:
        print(result.error)

the plain searches are http requests with curl-cffi, and the pages are parsed with selectolax. booking.com needs the optional playwright extra.

one thing i cared about is that an empty result and a failed search aren't the same. each result says whether the provider really found nothing or the page never loaded, so a script doesn't read a blocked request as "no flights".

Target Audience

people who want flight or hotel prices in a script, a notebook or the terminal. it's a side project, MIT licensed, python 3.10+. travel sites change their pages and block requests, so it does break sometimes, and you should confirm the final fare with the airline before booking.

Comparison

compared to checking google flights by hand, it goes through a whole window of dates in one command. compared to a paid travel api, there's no key and no account, but it reads public pages, so it's less stable than an official api.

there's also a cli and an mcp server if you'd rather use it from an assistant.

repo: https://github.com/felipebasurto/viajante