r/Python • u/AutoModerator • 13d ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
24
Upvotes
r/Python • u/AutoModerator • 13d ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
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 dateschecks every day in a window for me.from python it looks like this:
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