{"id":27916894,"url":"https://github.com/fent/jps","last_synced_at":"2025-05-06T16:42:56.396Z","repository":{"id":57281848,"uuid":"2511116","full_name":"fent/jps","owner":"fent","description":"A scraper for the jpopsuki tracker.","archived":false,"fork":false,"pushed_at":"2019-07-30T02:20:17.000Z","size":38,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T04:52:12.345Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-04T10:27:07.000Z","updated_at":"2023-12-27T23:16:43.000Z","dependencies_parsed_at":"2022-08-31T10:53:05.631Z","dependency_job_id":null,"html_url":"https://github.com/fent/jps","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fent%2Fjps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fent%2Fjps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fent%2Fjps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fent%2Fjps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fent","download_url":"https://codeload.github.com/fent/jps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252722618,"owners_count":21794087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-06T16:42:52.359Z","updated_at":"2025-05-06T16:42:56.386Z","avatar_url":"https://github.com/fent.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jps\n\nA small scraper for the jpopsuki tracker\n\n# Usage\n\n```javascript\nvar jps = require('jps');\n\njps.getTorrents({ cookie: 'cookiegoeshere'}, function(err, torrents) {\n  var newt = 0;\n  for (var i = 0; i \u003c torrents.length; i++) {\n    if (torrents[i].new) {\n      newt++;\n    }\n  }\n  console.log('There are', newt, 'new torrents!');\n});\n```\n\n\n# API\n\n### jps.getTorrents(options, callback(err, torrents))\nGets 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:\n\n```javascript\n{\n  new: false,\n  group: false,\n  artist: {\n    id: 173,\n    name: 'SHINee',\n    orgname: '샤이니'\n  },\n  release: {\n    id: 83835,\n    type: 'PV',\n    title: 'Lucifer (Japanese Version)',\n    orgtitle: null,\n    date: '2011',\n    comments: 1,\n    tags: [ 'japanese', 'korean', 'pop', 'male.vocalist' ]\n  },\n  torrent: {\n    id: 110116,\n    filetype: 'MP4',\n    quality: null,\n    source: 'WEB',\n    reissue: null,\n    freeleech: false,\n    files: 1,\n    added: '1 day, 3 hours',\n    size: '185.18 MB',\n    snatchers: 139,\n    seeders: 50,\n    leechers: 0\n  }\n}\n```\n\n### jps.parseTorrents(html, callback(err, torrents))\nLike `getTorrents` but you must provide the `html` string yourself.\n\n### jps.markOld([callback(err)])\nMarks torrents you've already seen old.\n\n### jps.imageLink(releaseid)\nReturns the link to a release image. ie album cover.\n\n### jps.thumbnailLink(releaseid)\nReturns the link to a release thumbnail image.\n\n### jps.artistLink(artistid)\nReturns the link to an artist's page.\n\n### jps.releaseLink(releaseid)\nReturns the link to a torrent's page.\n\n### jps.releaseLink(releaseid, torrentid)\nReturns the link to a release's page.\n\n### jps.downloadLink(torrentid)\nReturns the link to a torrent's download. Excluding the `authkey` and `torrent_pass` fields in the url.\n\n\n# Install\n\n    npm install jps\n\n\n# Tests\n\nTests are written with [vows](http://vowsjs.org/)\n\n```bash\nnpm test\n```\n\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffent%2Fjps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffent%2Fjps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffent%2Fjps/lists"}