Giter Site home page Giter Site logo

ororo-info-grabber's Introduction

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

ororo-info-grabber's People

Contributors

cyberlight avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.