Java Bugmenot library to find account and password for various sites.
If you use Maven to manage the dependencies in your Java project (and you should!), you do not need to download; just place the following into your POM's section:
<dependency>
<!-- Bugmenot library to find account and password for various sites -->
<groupId>com.github.davidepastore</groupId>
<artifactId>jbugmenot</artifactId>
<version>0.2.1</version>
</dependency>
Find all the accounts of a site:
ArrayList<Account> accounts = JBugMeNot.getAllAccounts("nypost.com");
Find the first login of a site:
ArrayList<Account> accounts = JBugMeNot.getAllAccounts("imdb.com");
Account firstAccount = accounts.get(0);
String username = firstAccount.getUsername();
String password = firstAccount.getPassword();
long votes = firstAccount.getVotes();
Date addingDate = firstAccount.getAddingDate();
Find all the accounts that have a given succes rate:
JBugmenot.setMinimumSuccessRate(50);
ArrayList<Account> accounts = JBugmenot.getAllAccounts("nypost.com");
Vote an account:
ArrayList<Account> accounts = JBugmenot.getAllAccounts("corriere.it");
Account lastAccount = accounts.get(accounts.size() - 1);
JBugmenot.vote(lastAccount, false);
//OR
lastAccount.vote(false);
If you find problems, please open an issue here.