Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
final = ""
hdr = 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:37.0) Gecko/20100101 Firefox/37.0'
print('--------findurl-----',url)
if "myvidstream" in str(url):
#print("myvidstream="+url
packed = ''
content = ccurl(url,"")
soup = BeautifulSoup(content,'lxml')
link = soup.findAll('script',{'type':'text/javascript'})
for i in link:
if 'myvidstream' in i.text:
#print(i.text)
packed = i.text
break
if packed:
val = packer.unpack(packed)
print(val)
soup = BeautifulSoup(val,'lxml')
m = (re.search('file[^)]*',val)).group()
print(m)
if m:
n = re.search("http[^']*",m).group()
if n:
print(n)
final = n
final = re.sub(' |"','',final)
final = re.sub("'",'',final)
fi = final.split('\\')
if fi:
final = fi[0]
found = link1['href']
return found
elif "videoweed" in i:
found = ""
return found
elif "videowing" in i or "easyvideo" in i:
content = ccurl(i)
soup = BeautifulSoup(content)
link = soup.findAll('script')
print(link)
print(len(link))
if link:
val = link[-1].text
m = re.search('eval\([^\*]*',val)
val1 = m.group()
r = packer.unpack(val1)
print(r )
if "videowing" in i:
r1 = re.findall('"url":"https[^"]*',r)
print(r1)
if not r1:
r1 = re.findall('"url":"http[^"]*',r)
if r1:
url = re.sub('"url":"','',r1[0])
url = str(urllib.parse.unquote(url))
url = url.replace('\\','')
print(url)
elif "easyvideo" in i:
r1 = re.findall('\{url:"https[^"]*',r)
print(r1)
if not r1:
r1 = re.findall('\{url:"http[^"]*',r)
found = link1['href']
return found
elif "videoweed" in i:
found = ""
return found
elif "videowing" in i or "easyvideo" in i:
content = ccurl(i)
soup = BeautifulSoup(content)
link = soup.findAll('script')
print(link)
print(len(link))
if link:
val = link[-1].text
m = re.search('eval\([^\*]*',val)
val1 = m.group()
r = packer.unpack(val1)
print(r )
if "videowing" in i:
r1 = re.findall('"url":"https[^"]*',r)
print(r1)
if not r1:
r1 = re.findall('"url":"http[^"]*',r)
if r1:
url = re.sub('"url":"','',r1[0])
url = str(urllib.parse.unquote(url))
url = url.replace('\\','')
print(url)
elif "easyvideo" in i:
r1 = re.findall('\{url:"https[^"]*',r)
print(r1)
if not r1:
r1 = re.findall('\{url:"http[^"]*',r)
if j:
k = j['src']
else:
j = i.find('IFRAME')
if j:
k = j['SRC']
if k:
content = ccurl(k)
soup = BeautifulSoup(content,'lxml')
link = soup.findAll('script',{'type':'text/javascript'})
for i in link:
if 'tusfiles' in i.text:
#print(i.text)
packed = i.text
if packed:
val = packer.unpack(packed)
print(val)
soup = BeautifulSoup(val,'lxml')
link = soup.find('param',{'name':'src'})['value']
print(link)
if link:
found = link
else:
found = ''
return found
elif "embedupload" in i:
content = ccurl(i)
m = re.findall('http://www.embedupload.com/\?MF=[^"]*',content)
if m:
content = ccurl(m[0])
n = re.findall('http://www.mediafire.com/\?[^<]*',content)
if n: