Integrate API changes (pattern.web)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by running the affected examples in examples/01-web/03-bing.py, 02-google-translate.py, and 11-facebook.py, then inspect the corresponding pattern.web integrations. Check the listed Bing, Google Translate, Facebook, and Yahoo failures and determine the required authentication or service changes. Done means the supported examples have a defined working path or clearly report the required license key and unavailable services.
Written by the indexing model from the issue text.
Description
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.
- Bing yields
URLError: Invalid header value 'BasicO lZuSkVLNEhUbG50RTNTeUY1OFFMa1VDTHAvNzh0a1lqVjFGbDNKN2xIYTA9\n'when running the example inexamples/01-web/03-bing.py.- The Bing Search API is a paid service now.
- Google (Translate) yields
HTTP401Authentication: Google translate API is a paid servicewhen running the example inexamples/01-web/02-google-translate.py.- In fact, the Google Cloud Translation API is a paid service now and apparently has no free quota.
- Facebook yields
HTTP401Authentication:when running the example inexamples/01-web/11-facebook.py.- Seems that Facebook Graph API has changed.
- 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.
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from clips/pattern
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
browser-use/browser-use#5905 ·
-
type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ynput/ayon-python-api#363 ·
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
modelscope/FunASR#3728 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
open-compass/opencompass#2655 ·