# jps

> A scraper for the jpopsuki torrent tracker

Latest version **0.0.8** (published 2013-06-25) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install jps
pnpm add jps
yarn add jps
bun add jps
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2013-06-25 |
| First published | 2011-10-04 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Roly Fentanes |
| Maintainers | fent |

## Links

- npm: https://www.npmjs.com/package/jps
- Repository: https://github.com/fent/jps
- Issues: https://github.com/fent/jps/issues
- npm.io page: https://npm.io/package/jps

## Dependencies (3)

- [he](https://npm.io/package/he.md) ~0.1.1
- [jquery](https://npm.io/package/jquery.md) ~1.6.3
- [request](https://npm.io/package/request.md) ~2.1.1

## Recent versions

- 0.0.8 (latest) — 2013-06-25
- 0.0.7 — 2012-01-13
- 0.0.6 — 2011-11-21
- 0.0.5 — 2011-11-17
- 0.0.4 — 2011-10-18
- 0.0.3 — 2011-10-04
- 0.0.2 — 2011-10-04
- 0.0.1 — 2011-10-04

## README

# jps

A small scraper for the jpopsuki tracker

# Usage

```javascript
var jps = require('jps');

jps.getTorrents({ cookie: 'cookiegoeshere'}, function(err, torrents) {
  var newt = 0;
  for (var i = 0; i < torrents.length; i++) {
    if (torrents[i].new) {
      newt++;
    }
  }
  console.log('There are', newt, 'new torrents!');
});
```


# API

### jps.getTorrents(options, callback(err, torrents))
Gets a list of torrents. `options` must be passed in a `cookie` field to be able to access jpopsuki. Optionally, a `query` field can be passed in options too to request a more specific torrent search. The `callback` gets an array of torrents if successful. The torrent object looks like this:

```javascript
{
  new: false,
  group: false,
  artist: {
    id: 173,
    name: 'SHINee',
    orgname: '샤이니'
  },
  release: {
    id: 83835,
    type: 'PV',
    title: 'Lucifer (Japanese Version)',
    orgtitle: null,
    date: '2011',
    comments: 1,
    tags: [ 'japanese', 'korean', 'pop', 'male.vocalist' ]
  },
  torrent: {
    id: 110116,
    filetype: 'MP4',
    quality: null,
    source: 'WEB',
    reissue: null,
    freeleech: false,
    files: 1,
    added: '1 day, 3 hours',
    size: '185.18 MB',
    snatchers: 139,
    seeders: 50,
    leechers: 0
  }
}
```

### jps.parseTorrents(html, callback(err, torrents))
Like `getTorrents` but you must provide the `html` string yourself.

### jps.markOld([callback(err)])
Marks torrents you've already seen old.

### jps.imageLink(releaseid)
Returns the link to a release image. ie album cover.

### jps.thumbnailLink(releaseid)
Returns the link to a release thumbnail image.

### jps.artistLink(artistid)
Returns the link to an artist's page.

### jps.releaseLink(releaseid)
Returns the link to a torrent's page.

### jps.releaseLink(releaseid, torrentid)
Returns the link to a release's page.

### jps.downloadLink(torrentid)
Returns the link to a torrent's download. Excluding the `authkey` and `torrent_pass` fields in the url.


# Install

    npm install jps


# Tests

Tests are written with [vows](http://vowsjs.org/)

```bash
npm test
```


# License

MIT

---
_Source: https://npm.io/package/jps · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
