morpheusthewhite / jwscraper

A python library for scraping videos from JW Player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jwscraper

codacy coverage codacy code quality license contributions welcome

A simple python library for scraping videos url from JW players. Bypasses CloudFlare protection.

Installation

sudo python3 setup.py install

You also need to install Mozilla Firefox and its driver.

Usage example

from jwscraper import scrape_video, scrape_save_video
scrape_video(url, bypass_cloudflare=True)
scrape_save_video(url, filename=None, bypass_cloudflare=True)

The first function will return the url containing the video in the page whose url is passed; The second one will save the video in the page as filename if it is None, otherwise the name will be automatically chosen.

About

A python library for scraping videos from JW Player

License:Mozilla Public License 2.0


Languages

Language:Python 100.0%