Giter VIP home page Giter VIP logo

news's Introduction

每日早报

news

项目起因

官网

完整版 [支持查看原文的版本] [dev]

Vercel 一键部署(推荐)

简洁版(我更喜欢这个):

Deploy with Vercel

完整版(有查看原文功能,但部分不大完善):

且与本项目定位不怎么相符, 但是似乎有相应的需求,见 #03

Deploy with Vercel

Replit 部署(不推荐)

服务器部署(不推荐)

  1. 安装 Python 3
  2. 安装 依赖库
  3. api/index.py 中的 from api.crawler 改为 from crawler
  4. 运行 python api/index.py
  5. index.js中的 api 域名改为部署得到的域名即可

API 说明

GET:/api

请求参数
参数名 位置 类型 必填 示例值 说明
_vercel_no_cache query 1 说明:vercel 强制不缓存
cache query 任意值 说明:清除缓存用
index query number 0 说明:0-99 用来控制天数,0 为今天,1 为昨天,依次类推
origin query string zhihu 说明:"zhihu" 或 "163" 切换源

详细信息见:每日早报 (apifox.cn)

news's People

Contributors

zkeq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

news's Issues

[接口失效]:

部署平台

None

您遇到的问题?

A bug happened!

接口失效?

No response

详细的错误日志

No response

准备提交

  • 哦,天哪,这确实是一个bug。

部署vercel报错

[11:24:15.280] Running build in Washington, D.C., USA (East) – iad1
[11:24:15.428] Cloning github.com/jacktain/news (Branch: main, Commit: bfb1773)
[11:24:15.690] Cloning completed: 261.455ms
[11:24:15.850] Previous build cache not available
[11:24:16.041] Running "vercel build"
[11:24:16.527] Vercel CLI 35.2.1
[11:24:16.725] Installing required dependencies...
[11:24:23.992] Failed to run "pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/api/requirements.txt"
[11:24:23.993] Error: Command failed: pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/api/requirements.txt
[11:24:23.993] error: subprocess-exited-with-error
[11:24:23.994]
[11:24:23.994] × Getting requirements to build wheel did not run successfully.
[11:24:23.994] │ exit code: 1
[11:24:23.994] ╰─> [5 lines of output]
[11:24:23.994] :114: SyntaxWarning: invalid escape sequence '.'
[11:24:23.994] :67: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
[11:24:23.994] Building lxml version 4.9.1.
[11:24:23.994] Building without Cython.
[11:24:23.995] Error: Please make sure the libxml2 and libxslt development packages are installed.
[11:24:23.995] [end of output]
[11:24:23.995]
[11:24:23.995] note: This error originates from a subprocess, and is likely not a problem with pip.
[11:24:23.995] error: subprocess-exited-with-error
[11:24:23.995]
[11:24:23.995] × Getting requirements to build wheel did not run successfully.
[11:24:23.995] │ exit code: 1
[11:24:23.995] ╰─> See above for output.
[11:24:23.995]
[11:24:23.996] note: This error originates from a subprocess, and is likely not a problem with pip.
[11:24:23.996]
[11:24:23.996] Collecting requests==2.25.1 (from -r /vercel/path0/api/requirements.txt (line 1))
[11:24:23.996] Downloading requests-2.25.1-py2.py3-none-any.whl.metadata (4.2 kB)
[11:24:23.996] Collecting urllib3==1.26.5 (from -r /vercel/path0/api/requirements.txt (line 2))
[11:24:23.996] Downloading urllib3-1.26.5-py2.py3-none-any.whl.metadata (43 kB)
[11:24:23.996] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.7/43.7 kB 4.6 MB/s eta 0:00:00
[11:24:23.996] Collecting fastapi~=0.75.0 (from -r /vercel/path0/api/requirements.txt (line 3))
[11:24:23.996] Downloading fastapi-0.75.2-py3-none-any.whl.metadata (24 kB)
[11:24:24.002] Collecting uvicorn==0.17.6 (from -r /vercel/path0/api/requirements.txt (line 4))
[11:24:24.002] Downloading uvicorn-0.17.6-py3-none-any.whl.metadata (6.2 kB)
[11:24:24.002] Collecting python-multipart==0.0.5 (from -r /vercel/path0/api/requirements.txt (line 5))
[11:24:24.003] Downloading python-multipart-0.0.5.tar.gz (32 kB)
[11:24:24.003] Installing build dependencies: started
[11:24:24.003] Installing build dependencies: finished with status 'done'
[11:24:24.003] Getting requirements to build wheel: started
[11:24:24.003] Getting requirements to build wheel: finished with status 'done'
[11:24:24.003] Preparing metadata (pyproject.toml): started
[11:24:24.003] Preparing metadata (pyproject.toml): finished with status 'done'
[11:24:24.003] Collecting beautifulsoup4==4.10.0 (from -r /vercel/path0/api/requirements.txt (line 6))
[11:24:24.003] Downloading beautifulsoup4-4.10.0-py3-none-any.whl.metadata (3.5 kB)
[11:24:24.003] Collecting lxml==4.9.1 (from -r /vercel/path0/api/requirements.txt (line 7))
[11:24:24.003] Downloading lxml-4.9.1.tar.gz (3.4 MB)
[11:24:24.003] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 158.3 MB/s eta 0:00:00
[11:24:24.004] Installing build dependencies: started
[11:24:24.004] Installing build dependencies: finished with status 'done'
[11:24:24.004] Getting requirements to build wheel: started
[11:24:24.004] Getting requirements to build wheel: finished with status 'error'
[11:24:24.004]
[11:24:26.486]

[接口失效]:

部署平台

vercel

您遇到的问题?

A bug happened!

接口失效?

有道新闻源

详细的错误日志

No response

准备提交

  • 哦,天哪,这确实是一个bug。

[接口失效]: 知乎源抓取失败(源用户发布图片)

部署平台

vercel

您遇到的问题?

知乎用户“每天60秒读懂世界”于今日发布的文本版日报未过审,于晚上七点左右发布了图片版本的日报,这导致接口抓取失败,并带来了与日期相关的bug

接口失效?

知乎源

详细的错误日志

No response

准备提交

  • 哦,天哪,这确实是一个bug。

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.