Skip to content

CyberLight/ororo-info-grabber

Repository files navigation

Requirements

Phantomjs >= 1.9.8

Usage

  • Now all urls and auth information stored to json file and this file used for grabbing information and generating list

  • With Auth:

  • Before usage please replace XXXX with actual password and email inside examples/exampleList.json

phantomjs --cookies-file=cookies.txt ororoInfoGrabber.js examples/exampleList.json
  • Output: json files with grabbed information and list_1420521341104.json with list of generated files
    • 1420521341104 - this is timestamp
  • If for any link inside json list value of keyneedAuth equal to true then use
    phantomjs --cookies-file=cookies.txt
    ``` parameters
    
    
  • Without Auth
phantomjs ororoInfoGrabber.js examples/exampleList.json
  • Note: needAuth can be false for all links in json list

Obsolete usage of grabber

  • For grabbing information about shows
phantomjs ororoInfoGrabber.js shows http://ororo.tv/en/shows/the-wire#1 > result_shows.json
  • For grabbing information about movies
phantomjs ororoInfoGrabber.js movies http://ororo.tv/en/movies/the-fifth-element > result_movie.json
  • Use authentication
phantomjs --cookies-file=cookies.txt ororoInfoGrabber.js auth USER_EMAIL USER_PASSWORD shows http://ororo.tv/en/shows/breaking-bad > breaking-bad.js

Downloader

  • Requirements

    • Node.js (v0.10.32)
  • Prepearing to use:

npm install
  • Basic usage:
node downloader.js list_1420532534950.json media/video media/posters
  • With posting data to api method:
node downloader.js list_1420532534950.json media/video media/posters post-data http://localhost:8000
  • Parameters:
    • list_1420532534950.json - file generated by grabber
    • media/video - path to folder
    • post-data - special flag for activation post data to API method action
    • http://localhost:8000 - api protocol and host

Obsolete information

  • Basic usage:
node downloader.js result_shows.json path/to/store/downloaded/data
  • With posting data to api method
node downloader.js result_shows.json media/video post-data http://localhost:8000 8304
  • Parameters:
    • result_shows.json - json file with links
    • media/video - path to folder
    • post-data - special flag for activation post data to API method action
    • http://localhost:8000 - api protocol and host
    • 8304 - id of series inside api database

Video thumbnail maker

  • Requirements:

    • Install ffmpeg
      • Use instructions for different OS
      https://github.com/fluent-ffmpeg/node-fluent-ffmpeg#prerequisites
      
    • Install new package fluent-ffmpeg (this library added to package.json)
      • Use command npm install
  • Basic usage:

node thumbsMaker.js path/to/root/folder/with/videos path/to/folder/for/saving/thumbs
  • Example
node thumbsMaker.js media/video media/preview
  • Additional information:
    • If you don't set second parameter with path to folder for saving thumbnails, then thumbnails will be saved inside the video file folder (near the video file)

Srt subtitles parser

  • Usage
    • node srtParser.js media/video breaking-bad.json 8308
      • media/video - path to folder which contains all series folders
      • breaking-bad.json - json file with data generated by grabber
      • 8308 - name of folder with serial content
    • After executing command inside current directory created sql file with name series_8308_script.sql
      • Please don't forget to insert use database_name; at top of the script

About

Grabber of information about videos from ororo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published