Skip to content

Instantly share code, notes, and snippets.

View spectrvrc's full-sized avatar
💭
Dev Mode Engage

Spëctr VRC spectrvrc

💭
Dev Mode Engage
View GitHub Profile
@spectrvrc
spectrvrc / jwdownloader.py
Created December 10, 2017 09:19
Download JW Player Videos
import requests
import re
def download_file(url):
local_filename = url.split('/')[-1]
r = requests.get(url, stream=True)
with open(local_filename, 'wb') as f:
for chunk in r.iter_content(chunk_size=1024):
if chunk:
f.write(chunk)