{"analyzedAt":"2022-06-26T17:45:16.621Z","collected":{"metadata":{"name":"torrent-indexer","scope":"unscoped","version":"1.2.1","description":"Yet another node.js torrent scraper based on seek-torrent but made especially for movies, series, anime and music (scrape from 1337x, eztv, limetorrents, rarbg, skytorrents, torrentproject, yts and zooqle)","keywords":["torrent","search","crawler","seek","index","download","movie","series","tracker","tv","show"],"date":"2020-05-04T20:46:39.543Z","author":{"name":"Sayem Chowdhury"},"publisher":{"username":"sayem314","email":"sayem314@yandex.com"},"maintainers":[{"username":"sayem314","email":"sayem314@yandex.com"}],"repository":{"type":"git","url":"git+https://github.com/sayem314/torrent-indexer.git"},"links":{"npm":"https://www.npmjs.com/package/torrent-indexer","homepage":"https://github.com/sayem314/torrent-indexer#readme","repository":"https://github.com/sayem314/torrent-indexer","bugs":"https://github.com/sayem314/torrent-indexer/issues"},"license":"MIT","dependencies":{"axios":"^0.19.2","node-html-parser":"^1.2.16","parse-torrent-title":"^1.2.0","retry-axios":"^2.1.2","string-similarity":"^4.0.1"},"devDependencies":{"ava":"^3.8.1","chai":"4.2.0","eslint":"6.8.0"},"releases":[{"from":"2022-05-27T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":0},{"from":"2022-03-28T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":1},{"from":"2021-12-28T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":1},{"from":"2021-06-26T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":1},{"from":"2020-06-26T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":1}],"hasTestScript":true,"readme":"## torrent-indexer [![Build Status](https://img.shields.io/travis/sayem314/torrent-indexer.svg?style=flat-square&label=Daily+Builds)](https://travis-ci.org/sayem314/torrent-indexer) [![npm downloads per month](https://img.shields.io/npm/dm/torrent-indexer.svg)](https://www.npmjs.com/package/torrent-indexer) [![npm version](https://img.shields.io/npm/v/torrent-indexer?label=version)](https://www.npmjs.com/package/torrent-indexer)\n\nFinds the best torrents (Movies, Series, Anime, Music and Other stuff) across multiple sources.\n\n## Installation\n\n```bash\n$ yarn add torrent-indexer\n```\n\n## Usage\n\nHere's a simple example to search for torrents.\n\n```js\nconst TorrentIndexer = require(\"torrent-indexer\");\nconst torrentIndexer = new TorrentIndexer();\n\nconst torrents = await torrentIndexer.search(\"rick and morty s04e04\");\n\nconsole.log(results);\n\n/*\n[\n  {\n    fileName: 'Rick.and.Morty.S04E01.1080p.WEBRip.x264-TBS[TGx]',\n    seeders: 7900,\n    leechers: 3198,\n    uploaded: \"Nov. 11th '19\",\n    size: '736.0 MB',\n    site: 'https://...',\n    resolution: '1080p',\n    source: 'webrip',\n    codec: 'x264',\n    group: 'TBS[TGx]',\n    season: 4,\n    episode: 1,\n    score: 24.281,\n    title: 'Rick and Morty',\n    sourceName: '1337x'\n  },\n  {\n    fileName: 'Rick and Morty S04E01 720p HDTV x264-W4F [eztv]',\n    seeders: 170,\n    leechers: 0,\n    uploaded: '4 mo',\n    size: '500.68 MB',\n    link: 'magnet:?xt=urn:btih:...',\n    resolution: '720p',\n    source: 'hdtv',\n    codec: 'x264',\n    season: 4,\n    episode: 1,\n    score: 23.357,\n    title: 'Rick and Morty',\n    sourceName: 'Eztv'\n  },\n  ...\n]\n*/\n```\n\nSearch method returns array of objects:\n\n| Property   |   Type   | Optional |                                                                                                                                        Description |\n| ---------- | :------: | -------: | -------------------------------------------------------------------------------------------------------------------------------------------------: |\n| `fileName` | `string` |       No |                                                                          torrent name found in the scraped sites, might be stripped for some sites |\n| `seeders`  | `number` |       No |                                                                                                                            total amount of seeders |\n| `leechers` | `number` |       No |                                                                                                                        total leechers (0 for eztv) |\n| `uploaded` | `string` |       No |                                                                                                             upload dates, non standard date format |\n| `link`     | `string` |   Yes/No |                                                                                         contains either downloadable torrent url or magnet address |\n| `site`     | `string` |   Yes/No | if magnet or direct link of .torrent cannot be extracted this property will contain specific page address to extract using `.torrent(site)` method |\n\n- One of `link` or `site` will be available. Site value contains webpage address to retrive torrent magnet or hash using `.torrent(.site)` method while link contains either direct downloadable torrent link or magnet.\n\n- There are also optional additional specific property available for specially for media contents.\n\n| Property     |   Type   |          Example |\n| ------------ | :------: | ---------------: |\n| `resolution` | `string` |          `1080p` |\n| `source`     | `string` |         `bluray` |\n| `codec`      | `string` |           `x264` |\n| `group`      | `string` |          `RARBG` |\n| `season`     | `number` |              `4` |\n| `episode`    | `number` |              `1` |\n| `title`      | `string` | `Rick and Morty` |\n| `sourceName` | `string` |          `1337x` |\n\n## Methods\n\n### `.search(query, type, page);`\n\n| Parameters | Required |     Type |               Accepted Values |\n| ---------- | :------: | -------: | ----------------------------: |\n| `query`    |   Yes    | `string` |   anything, your search query |\n| `type`     |    No    | `string` | movie, series, music or anime |\n| `page`     |    No    | `number` |                          >= 1 |\n\n### `.torrent(url)`\n\n| Parameters | Required |                                                                     Description |\n| ---------- | :------: | ------------------------------------------------------------------------------: |\n| `url`      |   Yes    | Using this method you can retrieve magnet or torrent hash from `.site` property |\n\nExample:\n\n```js\nawait torrentIndexer.torrent(torrents.site);\n```\n\n### Donations\n\nIf you want to show your appreciation, you can donate me on [ko-fi](https://ko-fi.com/Z8Z5KDA6) or [buy me a coffee](https://www.buymeacoffee.com/sayem). Thanks!\n\n> Made with :heart: & :coffee: by Sayem"},"npm":{"downloads":[{"from":"2022-06-25T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":2},{"from":"2022-06-19T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":12},{"from":"2022-05-27T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":42},{"from":"2022-03-28T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":190},{"from":"2021-12-28T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":364},{"from":"2021-06-26T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":756}],"starsCount":0},"github":{"starsCount":46,"forksCount":12,"subscribersCount":6,"issues":{"count":20,"openCount":12,"distribution":{"3600":0,"10800":3,"32400":1,"97200":0,"291600":0,"874800":0,"2624400":2,"7873200":1,"23619600":2,"70858800":11,"212576400":0},"isDisabled":false},"contributors":[{"username":"sayem314","commitsCount":80},{"username":"dependabot[bot]","commitsCount":1}],"commits":[{"from":"2022-06-19T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":0},{"from":"2022-05-27T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":0},{"from":"2022-03-28T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":0},{"from":"2021-12-28T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":0},{"from":"2021-06-26T00:00:00.000Z","to":"2022-06-26T00:00:00.000Z","count":0}],"statuses":[{"context":"continuous-integration/travis-ci/push","state":"success"}]},"source":{"files":{"readmeSize":4948,"testsSize":12851,"hasChangelog":true},"badges":[{"urls":{"original":"https://img.shields.io/travis/sayem314/torrent-indexer.svg?label=Daily%20Builds","service":"https://api.travis-ci.org/sayem314/torrent-indexer.svg","shields":"https://img.shields.io/travis/sayem314/torrent-indexer.svg","content":"https://img.shields.io/travis/sayem314/torrent-indexer.json"},"info":{"service":"travis","type":"build"}},{"urls":{"original":"https://img.shields.io/npm/dm/torrent-indexer.svg","shields":"https://img.shields.io/npm/dm/torrent-indexer.svg","content":"https://img.shields.io/npm/dm/torrent-indexer.json"},"info":{"service":"npm","type":"downloads","modifiers":{"type":"dm"}}}],"linters":["eslint"],"outdatedDependencies":{"axios":{"required":"^0.19.2","stable":"0.27.2","latest":"1.0.0-alpha.1"},"node-html-parser":{"required":"^1.2.16","stable":"5.3.3","latest":"5.3.3"},"retry-axios":{"required":"^2.1.2","stable":"3.0.0","latest":"3.0.0"}}}},"evaluation":{"quality":{"carefulness":0.9199999999999999,"tests":0.85,"health":0.5,"branding":0.3},"popularity":{"communityInterest":66,"downloadsCount":63.333333333333336,"downloadsAcceleration":-0.18006088280060883,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":0.9,"issuesDistribution":0.9}},"score":{"final":0.6500891638280835,"detail":{"quality":0.9066798584386587,"popularity":0.08036261260371975,"maintenance":0.9998808339576686}}}