Skip to content

Instantly share code, notes, and snippets.

@yusuke
Created October 25, 2014 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusuke/02af7471c7a14ffcd95b to your computer and use it in GitHub Desktop.
Save yusuke/02af7471c7a14ffcd95b to your computer and use it in GitHub Desktop.
public class Fabomb {
public static void main(String[] args) throws twitter4j.TwitterException {
if (twitter4j.TwitterFactory.getSingleton()
.timelines()
.getUserTimeline("syobochim")
.stream()
.peek(e -> {
try {if (twitter4j.TwitterFactory.getSingleton().destroyFavorite(e.getId()) != null) {}} catch (twitter4j.TwitterException ignore) {}
}).count() < 0) {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment