GithubHelp home page GithubHelp logo

smallnew666 / rsshub_chatgpt_telegram_bot Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 3.0 36 KB

通过ChatGPT分析处理RSSHub抓取的twitter数据,分析AI相关资讯等级并推送给自己的Telegram bot

License: Apache License 2.0

Python 100.00%

rsshub_chatgpt_telegram_bot's Introduction

RSSHub_ChatGPT_Telegram_Bot

通过ChatGPT分析处理RSSHub抓取的twitter数据,分析AI相关资讯等级并推送给自己的Telegram bot

前置条件

安装RSSHub https://docs.rsshub.app/install/#shou-dong-bu-shu-an-zhuang

运行RSSHub

yarn start

测试是否安装成功

curl http://127.0.0.1:1200

使用方法

1 创建Telegram机器人,获取Token 打开 https://t.me/botfather 输入 /start 按引导流程,先输入机器人名字,然后输入想要ID(必须以bot结尾),比如telegram_rss_bot 创建后会给Token,类似这种结构:5987500169:AAEBqLx7OWmK6ne9pIfHhrgMktDmq_VcsSQ

2 获取自己的Telegram ID 打开 https://t.me/userinfobot 输入 /start,拿到自己的ID,类似结构:1293676963

3 设置Token和Telegram ID

把Token和Telegram ID 填入env.txt文件,然后把env.txt改名为".env"

4 安装依赖程序

pip3 install -r requirements.txt

5 设置openai api_key

添加api_key到index.py

openai.api_key = "sk-xxxx" 

6 运行程序

python3 index.py

修改twitter源

修改 twitter_list.txt ,一行一个name

更多

可以根据你想要处理的数据类型可以手动替换ChatGPT的系统提示词,也可以分析其他平台的信息源,reddit、facebook、youtube等等

参考

https://github.com/DIYgod/RSSHub

https://github.com/joeseesun/AIGC_Telegram_Bot

rsshub_chatgpt_telegram_bot's People

Contributors

smallnew666 avatar

Stargazers

redstar avatar vc avatar  avatar Doutian bao avatar  avatar

Watchers

 avatar

rsshub_chatgpt_telegram_bot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.