Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/misterhat/pjftv
Scrape links from Project Free TV.
https://github.com/misterhat/pjftv
Last synced: 1 day ago
JSON representation
Scrape links from Project Free TV.
- Host: GitHub
- URL: https://github.com/misterhat/pjftv
- Owner: misterhat
- License: mit
- Created: 2015-01-07T06:33:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-07T06:34:43.000Z (almost 10 years ago)
- Last Synced: 2024-09-17T05:40:10.163Z (about 2 months ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pjftv
Scrape TV and movie links from Project Free TV.## Installation
$ npm install pjftv
## Example
```javascript
var pjftv = require('pjftv');pjftv('dr. strangelove', function (err, links) {
if (!err && links && links.length) {
console.log(links);
}
});pjftv({ title: 'simpsons', episode: 5, season: 7 }, function (err, links) {
if (!err && links && links.length) {
console.log(links);
}
});
```## API
### pjftv(terms, [options], done)
Search the Project Free TV website for links for a specific TV episode or movie.
`terms` is either a string or an object. If `terms` is a string, it's assumed to
be a movie title.
If it's an object it's expected to have some of the following properties:```javascript
{
title: String,
year: Number?,
episode: Number?,
season: Number?,
section: 'tv' | 'movies'?
}
```*If episode and season are provided, section is assumed to be "tv".*
`options` is an optional object with the following optional properties:
```javascript
{
host: 'http://www.free-tv-video-online.me'
parallel: 5, // how many link pages to open at a time
needle: { } // options passed into the needle instance
}
````done` is a callback which returns an array of links.
## License
MIT