Skip to main content

信息获取与新闻聚合器

Project description

agent_discovery

我在用的信息获取app

How to Use

安装

pip install agent-discovery

运行

启动 API 服务:

python -m agent_discovery.api.main

启动前端开发服务器:

python -m agent_discovery.frontend.server

首次运行会在当前目录生成默认配置目录 agent_discovery_config

本地开发

sh start.sh

配置项

配置模版参考:config.yaml

arXiv

arXiv:
  # query 直接沿用 arXiv 的 query 语法:
  # https://arxiv.org/help/api/user-manual#query_details
  - query: "transformer"
    max_results: 10
  - query: '("llm" OR "large language model" OR "large language models")'
    max_results: 30

新闻源

ews_source:
  enabled: true  # 是否启用
  sources: # 不想使用的源可以注释掉
    - id: v2ex-share
      name: V2EX-最新分享
    - id: zhihu
      name: 知乎
    - id: weibo
      name: 微博-实时热搜
    - id: zaobao
      name: 联合早报 
    # - id: coolapk
    #   name: 酷安-今日最热
    - id: mktnews-flash
      name: MKTNews-快讯
    - id: wallstreetcn-quick
      name: 华尔街见闻-快讯
    - id: wallstreetcn-news
      name: 华尔街见闻-最新
    - id: wallstreetcn-hot
      name: 华尔街见闻-最热
    - id: 36kr-quick
      name: 36氪-快讯
    - id: 36kr-renqi
      name: 36氪-人气榜
    - id: douyin
      name: 抖音
    - id: hupu
      name: 虎扑-主干道热帖
    - id: tieba
      name: 百度贴吧-热议
    - id: toutiao
      name: 今日头条
    - id: ithome
      name: IT之家
    - id: thepaper
      name: 澎湃新闻-热榜
    - id: sputniknewscn
      name: 卫星通讯社
    - id: cankaoxiaoxi
      name: 参考消息
    - id: pcbeta-windows11
      name: 远景论坛-Win11
    - id: cls-telegraph
      name: 财联社-电报
    - id: cls-depth
      name: 财联社-深度
    - id: cls-hot
      name: 财联社-热门
    - id: xueqiu-hotstock
      name: 雪球-热门股票
    - id: gelonghui
      name: 格隆汇-事件
    - id: fastbull-express
      name: 法布财经-快讯
    - id: fastbull-news
      name: 法布财经-头条
    - id: solidot
      name: Solidot
    - id: hackernews
      name: Hacker News
    - id: producthunt
      name: Product Hunt
    - id: github-trending-today
      name: Github-Today
    - id: bilibili-hot-search
      name: 哔哩哔哩-热搜
    - id: kuaishou
      name: 快手
    - id: kaopu
      name: 靠谱新闻
    - id: jin10
      name: 金十数据
    - id: baidu
      name: 百度热搜
    - id: nowcoder
      name: 牛客
    - id: sspai
      name: 少数派
    - id: juejin
      name: 稀土掘金
    - id: ifeng
      name: 凤凰网-热点资讯
    - id: chongbuluo-latest
      name: 虫部落-最新
    - id: chongbuluo-hot
      name: 虫部落-最热
    - id: douban
      name: 豆瓣-热门电影
    - id: steam
      name: Steam-在线人数
    - id: tencent-hot
      name: 腾讯新闻-综合早报
    - id: freebuf
      name: Freebuf-网络安全
    - id: qqvideo-tv-hotsearch
      name: 腾讯视频-热搜榜
    - id: iqiyi-hot-ranklist
      name: 爱奇艺-热播榜

RSS

rss:
  enabled: true
  freshness_filter:
    enabled: true                     # 是否启用新鲜度过滤(默认启用)

    max_age_days: 3                   # 最大文章年龄(天)
  feeds:
    - id: "hacker-news"
      name: "Hacker News"
      url: "https://hnrss.org/frontpage"
      # max_age_days: 1               # 示例:只推送1天内的文章

    - id: "ruanyifeng"
      name: "阮一峰的网络日志"
      url: "http://www.ruanyifeng.com/blog/atom.xml"
      # max_age_days: 7               # 示例:推送7天内的文章(更新较慢的博客)

    - id: "yahoo-finance"
      name: "雅虎财经"
      url: "https://finance.yahoo.com/news/rssindex"

Thanks to

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_discovery-0.0.1.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_discovery-0.0.1-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file agent_discovery-0.0.1.tar.gz.

File metadata

  • Download URL: agent_discovery-0.0.1.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for agent_discovery-0.0.1.tar.gz
Algorithm Hash digest
SHA256 27e079ef63de3c052939691766fe865660cedbb5576adfc73cb6f33bf20fd834
MD5 ab88f336f62d5c8e84623836203e322a
BLAKE2b-256 b611b31cc520f111811e5f466c4279042dbefbc2b7c6708d10ed6a5772b88a97

See more details on using hashes here.

File details

Details for the file agent_discovery-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_discovery-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 34d6c30f7b613e6668ff7ba2a790d07e2931d0746b20fa0a511fb5e806c47eec
MD5 c11001a77dfcbb90b2ab8ba167b65f83
BLAKE2b-256 6492927d7d86c5175687834eb53a26d109d603f1c8cde907b91c3f5c6a4b57ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page