https://github.com/davidepastore/jbugmenot
Java Bugmenot library to find account and password for various sites.
https://github.com/davidepastore/jbugmenot
accounts bugmenot java
Last synced: 14 days ago
JSON representation
Java Bugmenot library to find account and password for various sites.
- Host: GitHub
- URL: https://github.com/davidepastore/jbugmenot
- Owner: DavidePastore
- License: gpl-3.0
- Created: 2013-10-04T18:47:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-08-31T16:11:07.000Z (over 2 years ago)
- Last Synced: 2025-03-24T03:23:54.059Z (about 1 month ago)
- Topics: accounts, bugmenot, java
- Language: Java
- Homepage:
- Size: 56.6 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
JBugmenot
=========
[](https://github.com/DavidePastore/JBugmenot/actions/workflows/worflow.yml)
[](https://snyk.io/test/github/davidepastore/jbugmenot)Java [Bugmenot](http://www.bugmenot.com/) library to find account and password for various sites.
Install
-------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:
```xml
com.github.davidepastore
jbugmenot
0.2.1```
Usage
-----Find all the accounts of a site:
```java
ArrayList accounts = JBugMeNot.getAllAccounts("nypost.com");
```Find the first login of a site:
```java
ArrayList 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:
```java
JBugmenot.setMinimumSuccessRate(50);
ArrayList accounts = JBugmenot.getAllAccounts("nypost.com");
```Vote an account:
```java
ArrayList accounts = JBugmenot.getAllAccounts("corriere.it");
Account lastAccount = accounts.get(accounts.size() - 1);
JBugmenot.vote(lastAccount, false);
//OR
lastAccount.vote(false);
```Issues
------If you find problems, please open an issue [here](https://github.com/DavidePastore/JBugmenot/issues).