Skip to content

Instantly share code, notes, and snippets.

@bentogoa
bentogoa / openload.js
Last active April 4, 2019 11:03 — forked from Tithen-Firion/openload.js
Openload: extract download URL using PhantomJS
// Usage: phantomjs openload.js <video_url>
// if that doesn't work try: phantomjs --ssl-protocol=any openload.js <video_url>
var separator = ' | ';
var page = require('webpage').create(),
system = require('system'),
id, match;
if(system.args.length < 2) {
console.error('No URL provided');