Skip to content

Instantly share code, notes, and snippets.

@xatuke
Last active September 19, 2020 22:09
Show Gist options
  • Save xatuke/d30f08e574bf9f94aa66c70cbf5f4df6 to your computer and use it in GitHub Desktop.
Save xatuke/d30f08e574bf9f94aa66c70cbf5f4df6 to your computer and use it in GitHub Desktop.
#!/usr/bin/python3
import requests
import re
folder = input()
data = requests.get(folder)
lines = data._content.decode('utf-8')
files = re.findall('href="(.*)"', lines)
for i in range(1, len(files)):
print(folder+files[i])
echo "<folder_url>" | python mpvplaylist.py | mpv --playlist=- --playlist-start=X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment