aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-04-30 11:06:46 -0700
committerPinapelz <donaldshan1@outlook.com>2023-04-30 11:06:46 -0700
commit83d57ee87cafd24045d23c010bfeac28c160b97f (patch)
tree1d0175320316901aee7f3357b5b837e315d81760
parent6683295ea059e841fdaa5f5513aa2c4762ac54f6 (diff)
Updated README.md demo
-rw-r--r--README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index e23ecd8..633a15f 100644
--- a/README.md
+++ b/README.md
@@ -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);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage