Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <item>
- <title>[COLOR red]CINE SAGAS[/COLOR] [COLOR white]ACCION[/COLOR]</title>
- <link>$doregex[makelist]</link>
- <regex>
- <name>makelist</name>
- <listrepeat><![CDATA[
- <title>[COLOR white][makelist.param2][/COLOR] [COLOR red]ACCION[/COLOR]</title>
- <link>$doregex[getUrl]</link>
- <thumbnail>https://i.imgur.com/PAtt3i1.png</thumbnail>
- <fanart>https://i.imgur.com/rImlaDf.jpg</fanart>
- ]]></listrepeat>
- <expres><![CDATA[class="name[\w\W\s]{0,35}href="(.*?)"[\w\W\s]{0,50}preview">(.*?)<]]></expres>
- <page>http://k-bagi.com/juanleiva/cine-de-accion-sagas-538861/gallery,1,200</page>
- <cookieJar></cookieJar>
- </regex>
- <regex><name>getUrl</name>
- <expres><![CDATA[#$pyFunction
- import re , requests ,json
- def GetLSProData(page_data,Cookie_Jar,m):
- ref = 'http://k-bagi.com/'
- url='http://k-bagi.com[makelist.param1]'
- headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0 Iceweasel/42.0', 'Referer': ref ,
- 'X-Requested-With' : 'XMLHttpRequest' , 'Accept' : '*/*'}
- session = requests.Session()
- r = session.get(url, headers=headers)
- rv1 = r.cookies
- vfile , vtoken = re.findall('action/DownloadFile.*?fileId.*?value="(.*?)".*?Token".*?value="(.*?)"', r.text)[0]
- data_a ={'fileId': vfile , '__RequestVerificationToken': vtoken}
- nr = requests.post('http://k-bagi.com/action/DownloadFile?location=fi&f=%s'%vfile , headers=headers,cookies=rv1 , data=data_a).text
- nrj=json.loads(nr)
- nr = nrj['Content']
- r2 = re.findall(r'(?s)value=\"(.*?)\"', nr)[0]
- data_a ={'__RequestVerificationToken': r2 , 'Username': 'maladelanovela' , 'Password' : 'tacones'}
- nr1 = requests.post('http://k-bagi.com/action/Account/Login', headers=headers,cookies = rv1 , data=data_a)
- print nr1.headers['Set-Cookie']
- rasp = re.findall('ASPXAUTH_v2=(.*?);', nr1.headers['Set-Cookie'])[0]
- rv1['.ASPXAUTH_v2'] = rasp
- data_a ={'fileId': vfile , '__RequestVerificationToken': vtoken}
- nr3 = requests.post('http://k-bagi.com/action/DownloadFile?location=fi&f=%s'%vfile , headers=headers, cookies = rv1 , data=data_a).text
- r3 = re.findall('DownloadUrl":"(.*?)"', nr3)[0]
- print r3
- return r3
- ]]></expres>
- <page></page>
- <cookieJar></cookieJar>
- </regex>
- <thumbnail>https://i.imgur.com/PAtt3i1.png</thumbnail>
- <fanart>https://i.imgur.com/rImlaDf.jpg</fanart>
- </item>
- <item>
- <title>[COLOR red]CINE SAGAS[/COLOR] [COLOR white]AVENTURAS[/COLOR]</title>
- <link>$doregex[makelist]</link>
- <regex>
- <name>makelist</name>
- <listrepeat><![CDATA[
- <title>[COLOR white][makelist.param2][/COLOR] [COLOR red]AVENTURAS[/COLOR]</title>
- <link>$doregex[getUrl]</link>
- <thumbnail>https://i.imgur.com/S6ObYc2.png</thumbnail>
- <fanart>https://i.imgur.com/yA5fgnB.jpg</fanart>
- ]]></listrepeat>
- <expres><![CDATA[class="name[\w\W\s]{0,35}href="(.*?)"[\w\W\s]{0,50}preview">(.*?)<]]></expres>
- <page>http://k-bagi.com/juanleiva/cine-de-aventuras-sagas-538857/gallery,1,200</page>
- <cookieJar></cookieJar>
- </regex>
- <regex><name>getUrl</name>
- <expres><![CDATA[#$pyFunction
- import re , requests ,json
- def GetLSProData(page_data,Cookie_Jar,m):
- ref = 'http://k-bagi.com/'
- url='http://k-bagi.com[makelist.param1]'
- headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0 Iceweasel/42.0', 'Referer': ref ,
- 'X-Requested-With' : 'XMLHttpRequest' , 'Accept' : '*/*'}
- session = requests.Session()
- r = session.get(url, headers=headers)
- rv1 = r.cookies
- vfile , vtoken = re.findall('action/DownloadFile.*?fileId.*?value="(.*?)".*?Token".*?value="(.*?)"', r.text)[0]
- data_a ={'fileId': vfile , '__RequestVerificationToken': vtoken}
- nr = requests.post('http://k-bagi.com/action/DownloadFile?location=fi&f=%s'%vfile , headers=headers,cookies=rv1 , data=data_a).text
- nrj=json.loads(nr)
- nr = nrj['Content']
- r2 = re.findall(r'(?s)value=\"(.*?)\"', nr)[0]
- data_a ={'__RequestVerificationToken': r2 , 'Username': 'maladelanovela' , 'Password' : 'tacones'}
- nr1 = requests.post('http://k-bagi.com/action/Account/Login', headers=headers,cookies = rv1 , data=data_a)
- print nr1.headers['Set-Cookie']
- rasp = re.findall('ASPXAUTH_v2=(.*?);', nr1.headers['Set-Cookie'])[0]
- rv1['.ASPXAUTH_v2'] = rasp
- data_a ={'fileId': vfile , '__RequestVerificationToken': vtoken}
- nr3 = requests.post('http://k-bagi.com/action/DownloadFile?location=fi&f=%s'%vfile , headers=headers, cookies = rv1 , data=data_a).text
- r3 = re.findall('DownloadUrl":"(.*?)"', nr3)[0]
- print r3
- return r3
- ]]></expres>
- <page>http://k-bagi.com/juanleiva/cine-de-aventuras-sagas-538857/gallery,1,200</page>
- <cookieJar></cookieJar>
- </regex>
- <thumbnail>https://i.imgur.com/S6ObYc2.png</thumbnail>
- <fanart>https://i.imgur.com/yA5fgnB.jpg</fanart>
- </item>
- <item>
- <title>[COLOR red]CINE SAGAS[/COLOR] [COLOR white]CIENCIA FICCION[/COLOR]</title>
- <link>$doregex[makelist]</link>
- <regex>
- <name>makelist</name>
- <listrepeat><![CDATA[
- <title>[COLOR white][makelist.param2][/COLOR] [COLOR red]CIENCIA FICCION[/COLOR]</title>
- <link>$doregex[getUrl]</link>
- <thumbnail>https://i.imgur.com/uaVUM6H.png</thumbnail>
- <fanart>https://i.imgur.com/94q6I9A.jpg</fanart>
- ]]></listrepeat>
- <expres><![CDATA[class="name[\w\W\s]{0,35}href="(.*?)"[\w\W\s]{0,50}preview">(.*?)<]]></expres>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement