The User-Agent Parser is a web application built with Python and Flask that parses incoming HTTP request headers to identify and extract information about the user agent. It is deployed on Heroku and serves the purpose of detecting various details about the client's browser, operating system, and device.
- Parse User-Agent Strings: Extract and display detailed information from User-Agent headers.
- Responsive UI: Simple and intuitive web interface to input and analyze User-Agent strings.
- Deployment on Heroku: Easily scalable and accessible via a public URL.
- Backend: Python, Flask
- Web Server: Gunicorn
- Hosting: Heroku
- Dependencies:
flaskuser_agents
- Python 3.x
- pip
-
Clone the repository:
git clone https://github.com/yourusername/user-agent-parser.git cd user-agent-parser -
Install dependencies:
pip install -r requirements.txt
-
Set environment variables (optional):
export FLASK_APP=app.py export FLASK_ENV=development
-
Start the Flask development server:
flask run
-
Access the application at
http://127.0.0.1:5000/.
- Visit https://agent.dansec.red.
- Input a User-Agent string in the text box and click "Submit".
- The application will display parsed details, including the browser, operating system, and device information.
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE file for details.