https://github.com/eser/phi-agent-sample
https://github.com/eser/phi-agent-sample
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eser/phi-agent-sample
- Owner: eser
- Created: 2025-01-04T20:36:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-19T04:41:46.000Z (about 1 year ago)
- Last Synced: 2025-07-27T19:08:38.927Z (12 months ago)
- Language: Python
- Size: 98.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web Content Fetcher
This project was created during Emre Savci's Go Turkiye broadcast, which can be viewed at [YouTube](https://www.youtube.com/watch?v=qa_GRqWK9pY).
## About
A simple Python application that demonstrates fetching web content using the phi library and OpenAI's GPT-4 model. The application retrieves content from a specified URL and saves it to a local file.
## Features
- Fetches web content using HTTP GET requests
- Writes content to local files
- Uses OpenAI's GPT-4 for processing
- Includes error handling for network requests
## Requirements
- Python 3.9+
- phi library
- OpenAI API key
- Poetry for dependency management
## Usage
Run the main script:
```bash
python main.py
```
This will fetch the content from the specified URL and save it to a file named `output.txt`.