This project demonstrates a practical implementation of browser-use, a powerful tool that connects AI agents with browser capabilities.
Browser-use is the easiest way to connect your AI agents with the browser. It provides a seamless interface for AI agents to interact with web content, making it perfect for tasks that require web browsing and data gathering.
This implementation uses browser-use to create an intelligent shopping assistant that:
- Searches Amazon for the best deals on AI engineering laptops
- Finds the latest PS5 action games
- Analyzes product specifications and reviews
- Compares prices and features
- Generates a curated list with product details and purchase links in a draft.txt file
- Automated product research
- Price comparison
- Specification analysis
- Deal finding
- Structured output in draft.txt
- Python
- LangChain
- OpenAI GPT-4
- browser-use agent
- dotenv (for environment variable management)
- Clone this repository
- Create a virtual environment:
python -m venv .venv source .venv/bin/activate # On Unix/macOS
- Install dependencies:
pip install python-dotenv langchain-openai browser-use
- Set up your environment variables in
.env:OPENAI_API_KEY=your_key_here - Run the script:
python task.py
Make sure to keep your API keys secure and never commit them to version control. The .gitignore file is configured to exclude sensitive information.
This project is open-source and available under the MIT License.