{"id":18655502,"url":"https://github.com/ronknight/flask-url-cleaner","last_synced_at":"2025-11-05T19:30:25.977Z","repository":{"id":257630574,"uuid":"858827275","full_name":"ronknight/flask-url-cleaner","owner":"ronknight","description":"🧹A simple Flask API that removes the csrfToken parameter from URLs.","archived":false,"fork":false,"pushed_at":"2024-09-19T19:56:16.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T14:33:57.245Z","etag":null,"topics":["cleaner","flask","parameter","url"],"latest_commit_sha":null,"homepage":"https://pinoyitsolution.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronknight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"PinoyITSolution"}},"created_at":"2024-09-17T15:48:56.000Z","updated_at":"2024-09-19T19:56:19.000Z","dependencies_parsed_at":"2024-12-27T14:32:23.529Z","dependency_job_id":"629cc922-7f5b-44bb-9004-1c31bd935c8f","html_url":"https://github.com/ronknight/flask-url-cleaner","commit_stats":null,"previous_names":["ronknight/flask-url-cleaner"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronknight%2Fflask-url-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronknight%2Fflask-url-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronknight%2Fflask-url-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronknight%2Fflask-url-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronknight","download_url":"https://codeload.github.com/ronknight/flask-url-cleaner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239470275,"owners_count":19644090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cleaner","flask","parameter","url"],"created_at":"2024-11-07T07:19:08.375Z","updated_at":"2025-11-05T19:30:25.924Z","avatar_url":"https://github.com/ronknight.png","language":"HTML","funding_links":["https://patreon.com/PinoyITSolution"],"categories":[],"sub_categories":[],"readme":"# \u003ch1 align=\"center\"\u003e🧹 [Flask URL Cleaner](https://github.com/ronknight/flask-url-cleaner) \u003c/h1\u003e\r\n\r\n#### \u003ch4 align=\"center\"\u003eA simple Flask web application that removes the 'csrfToken' parameter from URLs.\u003c/h4\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n\u003ca href=\"https://twitter.com/PinoyITSolution\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/PinoyITSolution?style=social\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://github.com/ronknight?tab=followers\"\u003e\u003cimg src=\"https://img.shields.io/github/followers/ronknight?style=social\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://github.com/ronknight/ronknight/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/BEPb/BEPb.svg?logo=github\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://github.com/ronknight/ronknight/network/members\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/BEPb/BEPb.svg?color=blue\u0026logo=github\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://youtube.com/@PinoyITSolution\"\u003e\u003cimg src=\"https://img.shields.io/youtube/channel/subscribers/UCeoETAlg3skyMcQPqr97omg\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://github.com/ronknight/flask-url-cleaner/issues\"\u003e\u003cimg src=\"https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://github.com/ronknight/flask-url-cleaner/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\"\u003e\u003c/a\u003e\r\n\u003ca href=\"#\"\u003e\u003cimg src=\"https://img.shields.io/badge/Made%20with-Python-1f425f.svg\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://github.com/ronknight\"\u003e\u003cimg src=\"https://img.shields.io/badge/Made%20with%20%F0%9F%A4%8D%20by%20-%20Ronknight%20-%20red\"\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e •\r\n  \u003ca href=\"#requirements\"\u003eRequirements\u003c/a\u003e •\r\n  \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e •\r\n  \u003ca href=\"#project-structure\"\u003eProject Structure\u003c/a\u003e •\r\n  \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e •\r\n  \u003ca href=\"#api-endpoint\"\u003eAPI Endpoint\u003c/a\u003e •\r\n  \u003ca href=\"#example\"\u003eExample\u003c/a\u003e •\r\n  \u003ca href=\"#web-interface\"\u003eWeb Interface\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n---\r\n\r\n## 🌟 Features\r\n\r\n- Removes the 'csrfToken' parameter from URLs\r\n- Simple Flask web application with a user interface\r\n- API endpoint for programmatic access\r\n- Easily integrable into larger projects\r\n\r\n## 📋 Requirements\r\n\r\n- Python 3.x\r\n- Flask\r\n\r\n## 🛠️ Installation\r\n\r\n1. Clone the repository:\r\n   ```bash\r\n   git clone https://github.com/ronknight/flask-url-cleaner.git\r\n   cd flask-url-cleaner\r\n   ```\r\n\r\n2. Install the required dependencies:\r\n   ```bash\r\n   pip install flask\r\n   ```\r\n\r\n## 📁 Project Structure\r\n\r\nThe project has the following structure:\r\n\r\n```\r\nflask-url-cleaner/\r\n│\r\n├── app.py\r\n├── README.md\r\n└── index.html\r\n```\r\n\r\n- `app.py`: The main Flask application file\r\n- `README.md`: This file, containing project information and instructions\r\n- `index.html`: The HTML template for the web interface\r\n\r\n## 🚀 Usage\r\n\r\n1. Run the Flask application:\r\n   ```bash\r\n   python app.py\r\n   ```\r\n\r\n2. The server will start running on `http://127.0.0.1:5000/` and will be accessible on your local network.\r\n\r\n3. Open your web browser and navigate to `http://127.0.0.1:5000/` or use your local network IP address to access the application from other devices.\r\n\r\n## 📡 API Endpoint\r\n\r\n### POST /clean_url\r\n\r\nRemoves the 'csrfToken' parameter from the provided URL.\r\n\r\n**Request Body:**\r\n```json\r\n{\r\n    \"url\": \"https://example.com/page?param1=value1\u0026csrfToken=abc123\u0026param2=value2\"\r\n}\r\n```\r\n\r\n**Response:**\r\n```json\r\n{\r\n    \"cleaned_url\": \"https://example.com/page?param1=value1\u0026param2=value2\"\r\n}\r\n```\r\n\r\n## 💡 Example\r\n\r\nUsing curl to test the API:\r\n\r\n```bash\r\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"url\": \"https://example.com/page?param1=value1\u0026csrfToken=abc123\u0026param2=value2\"}' http://127.0.0.1:5000/clean_url\r\n```\r\n\r\nExpected output:\r\n```json\r\n{\r\n    \"cleaned_url\": \"https://example.com/page?param1=value1\u0026param2=value2\"\r\n}\r\n```\r\n\r\n## 🌐 Web Interface\r\n\r\nThe application includes a web interface for easy URL cleaning:\r\n\r\n1. Open your web browser and go to `http://127.0.0.1:5000/` or use your local network IP address (e.g., `http://192.168.1.200:5000/`)\r\n2. You'll see a form with the title \"Enter a URL to Clean\"\r\n3. Enter the URL you want to clean in the provided input field\r\n4. Click the \"Clean URL\" button\r\n5. The cleaned URL will be displayed in the \"Response\" section below the form\r\n\r\nThe web interface is rendered using the `index.html` file located in the root directory. Flask serves this file directly from the root directory when you navigate to the root URL `/`.\r\n\r\n---\r\n\r\nMade with ❤️ by [Ronknight](https://github.com/ronknight)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronknight%2Fflask-url-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronknight%2Fflask-url-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronknight%2Fflask-url-cleaner/lists"}