Set of functions that can be used as an imported library or as an api rest running the main.py. There is currently an instance of the api running at https://flanaserver.ddns.net/flanaapis.
Python 3.10 or higher is required.
pip install flanaapis
- Library functions:
flanaapis.geolocation.functions.find_place(...)
- Library functions:
flanaapis.geolocation.functions.find_places(...)
- Library functions:
flanaapis.geolocation.functions.find_timezone(...)
All geolocation functions and endpoints have a parameter fast: bool
. If fast=true
(false by default) google maps won't be used. It will directly use the https://nominatim.openstreetmap.org api but it's somewhat less precise.
It use Twitter api, doesn't really scrape.
- Library functions:
flanaapis.scraping.twitter.get_medias(...)
- Api endpoints:
- POST https://flanaserver.ddns.net/flanaapis/medias with parameters {"text": "any link/s"}.
- Library functions:
flanaapis.scraping.instagram.get_medias(...)
- Api endpoints:
- POST https://flanaserver.ddns.net/flanaapis/medias with parameters {"text": "any link/s"}.
- Library functions:
flanaapis.scraping.tiktok.get_medias(...)
- Api endpoints:
- POST https://flanaserver.ddns.net/flanaapis/medias with parameters {"text": "any link/s"}.
- Library functions:
flanaapis.scraping.youtube.get_medias(...)
- Api endpoints:
- POST https://flanaserver.ddns.net/flanaapis/medias with parameters {"text": "any link/s"}.
Based on github.com/lfhohmann/google-weather-scraper.
- Library functions:
flanaapis.scraping.google_weather_scraper.get_forecast(...)
- Api endpoints:
- see 3) Weather
Gets the waether data mean from several sources:
- Library functions:
flanaapis.functions.weather.get_day_weathers_by_place(...)