An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

JBugmenot
=========
[![Continuous Integration](https://github.com/DavidePastore/JBugmenot/actions/workflows/worflow.yml/badge.svg)](https://github.com/DavidePastore/JBugmenot/actions/workflows/worflow.yml)
[![Known Vulnerabilities](https://snyk.io/test/github/davidepastore/jbugmenot/badge.svg)](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).