No description
- Python 93.3%
- HTML 6.7%
| app | Enable CORS on /unshortener for browser API access | |
| templates | add lat and long to response | |
| .env.example | Replace config.py with .env-based configuration | |
| .gitignore | add config file to .gitignore | |
| README.md | update instructions on how to install | |
| requirements.txt | Enable CORS on /unshortener for browser API access | |
| run.py | fix app execution | |
Welcome to the Google Maps Unshortener!
This simple web application allows you to unshorten proprietary URLs from map services as Google, Waze or Yandex.
Usage:
- Make a GET request to
/unshortenerwith thelinkparameter containing the shortened proprietary URL. - The server will return the full URL corresponding to the given short proprietary link.
- This service acts as a barrier between you and proprietary services, ensuring your privacy by making the request on your behalf.
Example request: GET /unshortener?link=https://maps.app.goo.gl/short_link
Setup Instructions
Follow these steps to set up the Google Maps Unshortener tool:
-
Clone the Repository:
git clone https://codeberg.org/retiolus/gmapsUnshortener.git -
Install Dependencies:
cd gmapsUnshortener pip install -r requirements.txt -
Configure the Application:
Copy the
config.py.examplefile toapp/config.pyand configure the settings as per your requirements. This includes setting up the logging level, user agents, default request headers, cookies, API keys, rate limiting settings, and cache configuration. -
Run the Application:
python run.pyThe application should now be running locally. You can access it at http://localhost:5000 in your web browser.