jk cli
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
620 B

from bs4 import BeautifulSoup
import requests
import webbrowser
#get ep url
def get_vid(url):
webp = requests.get(url)
soup = BeautifulSoup(webp.text, 'html.parser')
res = soup.find_all('html')
raw = str(res)
vid = raw.split('var video')
r = vid[1]
src = r.split('src=')
src = str(src).replace('"', '')
sour = str(src).split(' width')
end = str(sour).split(',')
links = []
for x in end:
if '.net' in x:
return links
#opens link in a firefox tab (couldnt make mpv work yet :c)
def display(url):