# Video Grabber __Video Grabber__ is a simple tool to get video tags from a given URL. It includes advanced techniques to desobfuscate advertisements, run through embedded iframes, run javascript, and other frivolities that could usually and notably prevent one to fetch the wanted video. ## Installation Add this line to your application's Gemfile: ```ruby gem 'video_grabber' ``` And then execute: ```shell $ bundle ``` Or install it yourself as: ```ruby $ gem install video_grabber ``` And require it in your application: ```ruby irb(main):001:0> require 'video_grabber' => true ``` ## Requirements If you plan to use Firefox as your browser, `video_grabber` will then rely on [Headless](https://github.com/leonid-shevtsov/headless) (unless you specifically disable it). To get Headless working you will need linux and `xvfb`. Install `xvfb` on Debian: ```shell sudo apt-get install xvfb ``` Headless is used to run Firefox inside a headless display (in background). ## Usage Start the Scraper ```ruby video_grabber = VideoGrabber.new(url: 'https://en.wikipedia.org/wiki/Big_Buck_Bunny').call ``` Fetch your links and shut down your scraper: ```ruby video_grabber.fetch_videos => ["