diff options
| author | Pinapelz <donaldshan1@outlook.com> | 2023-04-30 11:06:46 -0700 |
|---|---|---|
| committer | Pinapelz <donaldshan1@outlook.com> | 2023-04-30 11:06:46 -0700 |
| commit | 83d57ee87cafd24045d23c010bfeac28c160b97f (patch) | |
| tree | 1d0175320316901aee7f3357b5b837e315d81760 | |
| parent | 6683295ea059e841fdaa5f5513aa2c4762ac54f6 (diff) | |
Updated README.md demo
| -rw-r--r-- | README.md | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -34,8 +34,11 @@ public class App { ChannelQueryBuilder channelQuery = new ChannelQueryBuilder(); channelQuery.setOrg(Organization.NIJISANJI); channelQuery.setLimit(75); + List<Channel> nijisanjiMembers = holodex.getChannels(channelQuery); + System.out.println("There are " + nijisanjiMembers.size() + " members in " + Organization.NIJISANJI); + Video anotherVideo = holodex.getVideo(new VideoByVideoIdQueryBuilder().setVideoId("9-O_IWM3184").setLang( List.of(Language.ENGLISH, Language.JAPANESE))); @@ -43,7 +46,7 @@ public class App { " on " + anotherVideo.published_at); // SEARCHING THROUGH VIDEOS AND COMMENTS - Object srv = holodex.searchVideo(new VideoSearchQueryBuilder().setOrg(List.of("Nijisanji")).setSort(Sort.NEWEST). + Object srv = holodex.searchVideo(new VideoSearchQueryBuilder().setOrg(Organization.NIJISANJI).setSort(Sort.NEWEST). setTarget(Type.STREAM).setPaginated(false).setLimit(10).setOffset(0) .setTopic(List.of("singing")) ); @@ -53,8 +56,8 @@ public class App { } System.out.println("\n\n\nNow Searching Comments"); - String word = "yabe"; - Object scr = holodex.searchComment(new CommentSearchQueryBuilder().setOrg(List.of("Hololive")).setComment(List.of(word)).setLimit(1).setPaginated(false)); + String word = "eating"; + Object scr = holodex.searchComment(new CommentSearchQueryBuilder().setOrg(Organization.NIJISANJI).setComment(List.of(word)).setLimit(1).setPaginated(false)); System.out.println("--- Search Results for comments containing kw: " + word + " ---"); for (SimpleCommentVideo video : (List<SimpleCommentVideo>) scr) { System.out.println(video.title + " - " + video.channel.name); |
