Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.17 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.17 KB

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.