From 287e120472bd98c5436492fb67b349cf95d55ba5 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 15 Apr 2023 02:27:08 -0700 Subject: Updated README, bump version, remove imports --- README.md | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index dd80bdd..d680914 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,33 @@ List 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) 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) scr) { +System.out.println(video.title + " - " + video.channel.name); +for (Comment comment : video.comments) { +System.out.println(" "+comment.message); +} +} ``` ## Download -Maven +[![](https://jitpack.io/v/pinapelz/JHolodex.svg)](https://jitpack.io/#pinapelz/JHolodex) +### Maven ```xml com.github.pinapelz @@ -40,4 +63,11 @@ Maven ``` -[Holodex License](https://docs.holodex.net/docs/holodex/8166fcec5dbe2-license) +### Gradle +```gradle +dependencies { + implementation 'com.github.pinapelz:JHolodex:Tag' +} +``` +#### Add [JitPack](https://jitpack.io/) to your list of repositories +#### [Holodex License](https://docs.holodex.net/docs/holodex/8166fcec5dbe2-license) -- cgit v1.2.3