Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Integrate API changes (pattern.web)

未关闭
#181 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
api

调研方向

首先运行 examples/01-web/03-bing.py、02-google-translate.py 和 11-facebook.py 中受影响的示例,然后检查相应的 pattern.web 集成。检查列出的 Bing、Google Translate、Facebook 和 Yahoo 失败情况,并确定所需的身份验证或服务变更。当受支持的示例具有明确的可行路径,或清楚报告所需的许可证密钥和不可用的服务时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

enhancement help

Some of the APIs for services (such as Bing Search API, Google Translate API and Facebook) supported by pattern.web are deprecated, require a paid subscription or have changed in some other way.

  1. Bing yields URLError: Invalid header value 'BasicO lZuSkVLNEhUbG50RTNTeUY1OFFMa1VDTHAvNzh0a1lqVjFGbDNKN2xIYTA9\n' when running the example in examples/01-web/03-bing.py.
  2. Google (Translate) yields HTTP401Authentication: Google translate API is a paid service when running the example in examples/01-web/02-google-translate.py.
    • In fact, the Google Cloud Translation API is a paid service now and apparently has no free quota.
  3. Facebook yields HTTP401Authentication: when running the example in examples/01-web/11-facebook.py.
    • Seems that Facebook Graph API has changed.
  4. Yahoo: HTTP401Authentication: Yahoo search API is a paid service
    • The BOSS JSON Search API is discontinued since March 31, 2016.
  • The following services seem to work fine: Twitter, Google Search, Flickr, Wikipedia, Wikia
  • I haven't checked for: DuckDuckGo (and there might be more missing!)

We should find out if any of the authentication errors are simply related to outdated tokens that simply need to be updated or if they actually require a (new) subscription. If they require a subscription, we should find out whether they offer a free quota (e.g. 100 request/day or something). If not, users will have to deal with license keys themselves, in this case we should raise some exception when no license key is provided.

主要语言
Python
星标
8.9k
派生
1.6k
PR 合并指标
30 天内没有已合并 PR

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

clips/pattern 的其他 Issue

查看 clips/pattern 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。