Adds relevant YouTube videos to 维基百科 & 百度百科
< 脚本Wikitube - YouTube on 维基百科 & 百度百科的反馈
That's because the Youtube API key provided in the script is out of quota. You can confirm it here: https://www.googleapis.com/youtube/v3/search?part=snippet&q=YouTube+Data+API&type=video&key=AIzaSyCMR8K-6fANDUBdlbHxFAo57mmlfAnPVFw
If you want it to work, you can provide your own key (it might incur costs) by:
1. Follow the guide and get a YouTube Data API key at https://developers.google.com/youtube/v3/getting-started
2. Put it in the script:
Find this line: const YOUTUBE_DATA_API_CREDENTIAL_1 = 'AIzaSyCMR8K-6fANDUBdlbHxFAo57mmlfAnPVFw';
And replace it with: const YOUTUBE_DATA_API_CREDENTIAL_1 = 'YOUR_CREATED_KEY_SHOULD_GO_HERE';
Remember to replace YOUR_CREATED_KEY_SHOULD_GO_HERE with the key you get from your google cloud console.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
Seems to not work correctly when songs include certain things like apostrophes (may be related to the other feedback indicating colons break it)
For example, on the When I'm Gone (song by Katy Perry/Alesso) article, it'll search for "When I" and that's it when you click the YouTube icon in the title. Videos aren't appearing anywhere other than that image.