Is is possible to get a Channels social links with the Youtube API

柔情痞子 提交于 2019-12-05 09:47:43

Unfortunately 'related sites' are not provided in API, even in "https://developers.google.com/youtube/v3/docs/channels#snippet.description"

I created a very simple Java-API which can get the related sites from a Youtube channel. It will return all the URLs and the link texts. You can even filter out the links for a specific website or social network.

YoutubeRelatedSites yrs = new YoutubeRelatedSites(new URL("https://www.youtube.com/user/WatchMojo/about?&ab_channel=WatchMojo.com"));
Map map = yrs.getLinks(); //Get all related sites
URL[] twitterLinks = yrs.getTwitter(); //Get all twitter links

Download the source code here: https://github.com/Grunzwanzling/YoutubeRelatedSites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!