ahmad romeh
عضو نشيط
- إنضم
- 11 أفريل 2016
- المشاركات
- 185
- مستوى التفاعل
- 435
هل مازاالت تعمل خاصية التحميل من التورنت
افلام-عربية
افلام-اجنبية
مسلسلات-تركية-مترجمة
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests,re,urllib2
T=requests.Session()
def get(prm):
hdr={'Host': 'elmadhd.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0'}
r=T.post("http://elmadhd.com/ajax/getPlayer",data=prm).content
tmx = "[src,SRC]='(.+?)'"
Video = re.findall(tmx,r, re.M|re.I)[0]
if Video.startswith('//'):Video = "https:"+Video
return Video
def get_donnees_servers(url,postID):
r = T.get(url).content
tmx = '''<a href="#" class="server"><i class="icon-video-camera"></i> (.+?)</a>'''
video = re.findall(tmx,r, re.M|re.I)
for x in video:
x = x.decode('utf-8')
prm = {'server':x,'postID':postID,'Ajax':'1'}
AA = get(prm)
if "http" not in AA:continue
print AA
def get_descrpt(url):
url=urllib2.unquote(url)
r=T.get(url).content
regx = '''<meta name="description" content="(.+?)"'''
description = re.findall(regx,r, re.M|re.I)
tmx = '''postID = "(.+?)"'''
postID = re.findall(tmx,r, re.M|re.I)[0]
fmx = '''<a rel="nofollow" href="(.+?)" title="" class="btn-servView">'''
nofollow = re.findall(fmx,r, re.M|re.I)[0]
if description:return description[0],postID,nofollow
else:return '..........',postID,nofollow
def get_Donnees(url):
r=T.get(url).content
#return r
blocks = r.split('<article class="post">')
i=0
print "blocks",len(blocks)
for block in blocks:
i=i+1
if i==1:
continue
regx='''<a href="(.+?)" title=".+?">'''
href=re.findall(regx,block, re.M|re.I)[0]
href = href.decode('utf-8')#urllib2.unquote(href)
regx='''<a href=".+?" title="(.+?)">'''
title=re.findall(regx,block, re.M|re.I)[0]
#title = urllib2.quote(title)
title = title.decode('utf-8')
regx='''<img itemprop="image" class="lazy img-responsive" src="(.+?)" data-original='''
image=re.findall(regx,block, re.M|re.I)[0]
disc,postID,nofollow = get_descrpt(href)
disc = disc.decode('utf-8')
nofollow = nofollow.decode('utf-8')
print "href= ",href
print "title= ",title
print "image= ",image
print "disc= ",disc
print "postID= ",postID
print "nofollow= ",nofollow
Enfin = get_donnees_servers(nofollow,postID)
print "Enfin= ",Enfin
print "************************************ Film_",str(i),"************************************"
S1 = "http://elmadhd.com/category/افلام-عربية.html"
S2 = "http://elmadhd.com/category/افلام-اجنبية.html"
S3 = "http://elmadhd.com/category/%D9%85%D8%B3%D9%84%D8%B3%D9%84%D8%A7%D8%AA-%D8%AA%D8%B1%D9%83%D9%8A%D8%A9-%D9%85%D8%AA%D8%B1%D8%AC%D9%85%D8%A9"
print get_Donnees(S2)
https://vfspace.co
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import base64
from base64 import b64encode, b64decode
import requests,re,urllib2
T=requests.Session()
def ClearTxt(txt):
txt = txt.replace(''',"'")
return txt
def get_url_server(url):
r = T.get(url).content
blocks = r.split('<div class="numberlist film">')
print "blocks",len(blocks)
i = 0
for block in blocks:
i=i+1
if i==1:
continue
regx='''<li><a title=.+?target=.+?data-id="(.+?)"> (.+?) </a></li>'''
href=re.findall(regx,block, re.M|re.I)#[0]
for a,b in href:
if "id=aH" in a:
link = b64decode(a.split("id=")[1])
if "openload" in link.lower():continue
print b + ":" + link
else:
if "openload" in a.lower():continue
print b + ":" + a
def get_vfspace(url):
r = T.get(url).content
blocks = r.split('<a class="short-poster"')
i=0
print "blocks",len(blocks)
for block in blocks:
i=i+1
if i==1:
continue
regx='''href="(.+?)" title=".+?">'''
href=re.findall(regx,block, re.M|re.I)[0]
regx='''href=".+?" title="Regarder (.+?)">'''
title=re.findall(regx,block, re.M|re.I)[0]
title = urllib2.unquote(title)
title = title.decode('utf-8')
title = ClearTxt(title)
regx='''<img class="lazy" src=".+?" data-src="(.+?)" alt'''
image=re.findall(regx,block, re.M|re.I)[0]
regx = '''<li>(.+?)</li>.+?<li class="vftab">'''
qlt = re.findall(regx,block, re.S)
if qlt:qlt=qlt[0]
else:qlt='__'
if image.startswith('/uploads'):image="https://vfspace.co"+image
print href
print title
print image
print qlt
print get_url_server(href)
print "************************************************* Films_",str(i),"*************************************************"
S1="https://vfspace.co/films/"
print get_vfspace(S1)
https://vfspace.co
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import base64
from base64 import b64encode, b64decode
import requests,re,urllib2,json
T=requests.Session()
def ClearTxt(txt):
txt = txt.replace(''',"'")
return txt
def get_url_Vid(url):
id_url = url.split('/')[-1]
print id_url
url = "https://vfsplayer.xyz/api/source/"+str(id_url)
r = T.post(url).json()
if "not found" not in r['data']:
AA= r['data']
print "===================================================================================================================="
for item in AA:
if item:
print item['type']+":"+item['file']
print "===================================================================================================================="
else:return "NADA"
def get_url_server(url):
r = T.get(url).content
blocks = r.split('<div class="numberlist film">')
print "blocks",len(blocks)
i = 0
for block in blocks:
i=i+1
if i==1:
continue
regx='''<li><a title=.+?target=.+?data-id="(.+?)"> (.+?) </a></li>'''
href=re.findall(regx,block, re.M|re.I)#[0]
for a,b in href:
if "id=aH" in a:
link = b64decode(a.split("id=")[1])
if "openload" in link.lower():continue
if "vfsplayer" in link and "/v/" in link:
print "id_url= ",get_url_Vid(link)
print b + ":" + link
else:
if "openload" in a.lower():continue
if "vfsplayer" in a and "/v/" in a:
print "id_url= ",get_url_Vid(a)
#continue
print b + ":" + a
def get_vfspace(url):
r = T.get(url).content
blocks = r.split('<a class="short-poster"')
i=0
print "blocks",len(blocks)
for block in blocks:
i=i+1
if i==1:
continue
regx='''href="(.+?)" title=".+?">'''
href=re.findall(regx,block, re.M|re.I)[0]
regx='''href=".+?" title="Regarder (.+?)">'''
title=re.findall(regx,block, re.M|re.I)[0]
title = urllib2.unquote(title)
title = title.decode('utf-8')
title = ClearTxt(title)
regx='''<img class="lazy" src=".+?" data-src="(.+?)" alt'''
image=re.findall(regx,block, re.M|re.I)[0]
regx = '''<li>(.+?)</li>.+?<li class="vftab">'''
qlt = re.findall(regx,block, re.S)
if qlt:qlt=qlt[0]
else:qlt='__'
if image.startswith('/uploads'):image="https://vfspace.co"+image
print href
print title
print image
print qlt
print get_url_server(href)
print "************************************************* Films_",str(i),"*************************************************"
S1="https://vfspace.co/films/"
print get_vfspace(S1)
https://show.alfajertv.com
import requests,re,json
T=requests.Session()
def get_fajer(url):
id_vid = url.split('/')[-1]
url ="https://fajer.live/api/source/"+str(id_vid)
r=T.post(url).json()
data = r['data']
for item in data:
print "========================================================================================================================"
print item['type']
print item['file']
print item['label']
url="https://fajer.live/v/dmzg5txqgqzk2y7"
print get_fajer(url)
https://extra-3sk.com/
import requests,re,json,time
S1="https://extra-3sk.com/%d9%81%d9%8a%d9%84%d9%85-kung-fu-panda-2-2011-%d9%85%d8%aa%d8%b1%d8%ac%d9%85-%d9%84%d9%84%d8%b9%d8%b1%d8%a8%d9%8a%d8%a9/"
S2="https://extra-3sk.com/wp-content/themes/Shahid%2B/Ajax/server-single.php"
T=requests.Session()
def get_extra_3sk(url):
def get_video(data):
time.sleep(2)
hdr={'Host': 'extra-3sk.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0',
'Accept': '*/*',
'Accept-Language': 'fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3',
'Accept-Encoding': 'gzip, deflate',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'X-Requested-With': 'XMLHttpRequest',
'Content-Length': '17',
'Origin': 'https://extra-3sk.com',
'Connection': 'keep-alive',
'Referer': url}
r = T.post(S2,headers=hdr,data=data).content
rgx = '''[SRC,src]="(.+?)"'''
SRC = re.findall(rgx,r)
if SRC:
if SRC[0].startswith('//'):SRC[0]="https:"+SRC[0]
return SRC[0]
else:return "NADA"
r = T.post(S1,data={"wtchBtn":""}).content
tmx = '''data-out="0" data-q="(.+?)" data-num=(.+?)>.+?<i class="fa fa-play"></i>(.+?)</li>'''
play = re.findall(tmx,r,re.S)
if play:
for x,y,z in play:
x=x.replace(' ','').replace('\n','').replace('\r','')
y=y.replace(' ','').replace('\n','').replace('\r','')
z=z.replace(' ','').replace('\n','').replace('\r','')
print x
print y
print z
data = {'q':x,'i':y,'out':'0'}
print data
print get_video(data)
print "==================================================================================="
print get_extra_3sk(S1)