1

It looks like that if you use the tagged from jumblr all the nsfw won't be included in the results.

    TumblrBot bot = new TumblrBot();
    JumblrClient jClient = bot.getjClient();
    Map<String, Object>options = new HashMap<>();
    options.put("limit", 20);
    options.put("offset", 0);
    List<Post> posts = jClient.tagged(tag, options);
    for (int i = 0; i < posts.size(); i++) {
        Post post = posts.get(i);
        System.out.println((i + 1) + " - post: " + post.getBlogName());
        System.out.println("\tnotes: " + post.getNoteCount());
    }

Are there anything you can put in options just to pull nsfw tagged results?

doppelgunner
  • 707
  • 6
  • 10

1 Answers1

0

see https://www.v2ex.com/t/386082

public String search(String query){
    Map<String, Object> params = new HashMap<>();
    params.put("api_key", apiKey);
    //params.put("timeline_type", "top");  // top results
    params.put("timeline_type", "recent"); //recent results
    params.put("query", query);
    params.put("block_nsfw", 0);
    if(!JumblrUtils.getInstance().getCursor().equals(""))
        params.put("cursor", JumblrUtils.getInstance().getCursor());
    return requestBuilder.get2("/timeline/search", params);

}