diff options
| author | Pinapelz <donaldshan1@outlook.com> | 2023-04-15 02:27:08 -0700 |
|---|---|---|
| committer | Pinapelz <donaldshan1@outlook.com> | 2023-04-15 02:27:08 -0700 |
| commit | 6069560b14564261fe73fbade76fa1f31ded0049 (patch) | |
| tree | 1232a4bb7e35e1885cfc343955d67d838040fa0c /README.md | |
| parent | 643250ad2a67f677c43e24bfe764ac0483086bb6 (diff) | |
Updated README, bump version, remove imports
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -28,6 +28,28 @@ List<Channel> nijisanjiMembers = holodex.getChannels(channelQuery); Video anotherVideo = holodex.getVideo(new VideoByVideoIdQueryBuilder().setVideoId("9-O_IWM3184").setLang("en")); System.out.println(anotherVideo.channel.name + " uploaded a video titled " + anotherVideo.title + " on " + anotherVideo.published_at); + +// SEARCHING THROUGH VIDEOS AND COMMENTS +Object srv = holodex.searchVideo(new VideoSearchQueryBuilder().setOrg(List.of("Nijisanji")).setSort("newest"). +setTarget(List.of("stream")).setPaginated(false).setLimit(10).setOffset(0) +.setTopic(List.of("singing")) +); +System.out.println("--- Search Results ---"); +for (SimpleVideo video : (List<SimpleVideo>) srv) { +System.out.println(video.title + " - " + video.channel.name); +} + + +System.out.println("\n\n\nNow Searching Comments"); +String word = "Mumei"; +Object scr = holodex.searchComment(new CommentSearchQueryBuilder().setOrg(List.of("Hololive")).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); +for (Comment comment : video.comments) { +System.out.println(" "+comment.message); +} +} ``` ## Download |
