Skip to content

A news collector that utilizes the OpenAI Agents SDK to automatically collect news from many sources and save them to the local file system.

License

Notifications You must be signed in to change notification settings

jeremy-feng/openai-agents-news-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openai-agents-news-collector

A news collector that utilizes the OpenAI Agents SDK to automatically collect news from many sources and save them to the local file system.

zhihu_news

Features

  • Collect news from many sources like Zhihu, Weibo, etc.
  • Save news to the local file system.

Installation

  1. Clone the repository:
git clone https://github.com/jeremy-feng/openai-agents-news-collector.git
cd openai-agents-news-collector
  1. Install dependencies:
uv sync
  1. Set up environment variables:

Create a .env file in the project root with the following environment variables:

OPENAI_API_BASE=XX
OPENAI_API_KEY=XX
MODEL_NAME=XX

Usage

Run the main script:

uv run main.py

The agent will automatically create a new zhihu_news.txt file in the news directory containing the latest news from Zhihu.

You can also get the news from other sources. See the mcp_newsnow for more available sources.

Acknowledgments

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A news collector that utilizes the OpenAI Agents SDK to automatically collect news from many sources and save them to the local file system.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages