Advertisement
Guest User

accion

a guest
Sep 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. <item>
  2. <title>ACCION</title>
  3. <link>$doregex[makelist]</link>
  4.  
  5. <regex>
  6. <name>makelist</name>
  7. <listrepeat><![CDATA[
  8. <title>[makelist.param2]</title>
  9. <link>$doregex[getUrl]</link>
  10. <fanart>https://free4kwallpaper.com/wp-content/uploads/2017/06/Creative-Colorful-Wallpaper-of-Lion.jpg</fanart>
  11. <thumbnail>http://verpeliculaslatino.com/wp-content/uploads/2018/02/Ver-Peliculas-Latino.png</thumbnail>
  12. ]]></listrepeat>
  13. <expres><![CDATA[class="name[\w\W\s]{0,35}href="(.*?)"[\w\W\s]{0,50}preview">(.*?)<]]></expres>
  14. <page>http://diskokosmiko.mx/naredo/accion-20343/list,1,4</page>
  15. <cookieJar></cookieJar>
  16. </regex>
  17.  
  18. <regex><name>getUrl</name>
  19. <expres><![CDATA[#$pyFunction
  20. import re , requests ,json
  21. def GetLSProData(page_data,Cookie_Jar,m):
  22.  
  23. ref = 'http://diskokosmiko.mx/'
  24. url='http://diskokosmiko.mx[makelist.param1]'
  25. headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0 Iceweasel/42.0', 'Referer': ref ,
  26. 'X-Requested-With' : 'XMLHttpRequest' , 'Accept' : '*/*'}
  27. session = requests.Session()
  28. r = session.get(url, headers=headers)
  29. rv1 = r.cookies
  30.  
  31. vfile , vtoken = re.findall('action/DownloadFile.*?fileId.*?value="(.*?)".*?Token".*?value="(.*?)"', r.text)[0]
  32. data_a ={'fileId': vfile , '__RequestVerificationToken': vtoken}
  33. nr = requests.post('http://diskokosmiko.mx/action/DownloadFile?location=fi&f=%s'%vfile , headers=headers,cookies=rv1 , data=data_a).text
  34. nrj=json.loads(nr)
  35. nr = nrj['Content']
  36. r2 = re.findall(r'(?s)value=\"(.*?)\"', nr)[0]
  37. data_a ={'__RequestVerificationToken': r2 , 'Username': 'lechero' , 'Password' : 'a123456789'}
  38. nr1 = requests.post('http://diskokosmiko.mx/action/Account/Login', headers=headers,cookies = rv1 , data=data_a)
  39. print nr1.headers['Set-Cookie']
  40. rasp = re.findall('ASPXAUTH_v2=(.*?);', nr1.headers['Set-Cookie'])[0]
  41. rv1['.ASPXAUTH_v2'] = rasp
  42. data_a ={'fileId': vfile , '__RequestVerificationToken': vtoken}
  43. nr3 = requests.post('http://diskokosmiko.mx/action/DownloadFile?location=fi&f=%s'%vfile , headers=headers, cookies = rv1 , data=data_a).text
  44. r3 = re.findall('DownloadUrl":"(.*?)"', nr3)[0]
  45. print r3
  46. return r3
  47. ]]></expres>
  48. <page></page>
  49. <cookieJar></cookieJar>
  50. </regex>
  51. <fanart>https://free4kwallpaper.com/wp-content/uploads/2017/06/Creative-Colorful-Wallpaper-of-Lion.jpg</fanart>
  52. <thumbnail>http://verpeliculaslatino.com/wp-content/uploads/2018/02/Ver-Peliculas-Latino.png</thumbnail>
  53. </item>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement