irokemr

Twitch m3u8

May 13th, 2021 (edited)
1,087
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. import json
  3. import os
  4. from colorama import Fore, init
  5. from os import system
  6. init()
  7.  
  8.  
  9.  
  10. print(Fore.MAGENTA + "   .___________.____    __    ____  __  .___________.  ______  __    __ ")  
  11. print(Fore.MAGENTA + "   |           |\  \ /  \ /   / |  | |           | /      ||  |  |  |")  
  12. print(Fore.MAGENTA + "   `---|  |----` \  \/    \/   /  |  | `---|  |----`|  ,----'|  |__|  |")  
  13. print(Fore.MAGENTA + "       |  |       \           /   |  |     |  |     |  |     |   __   |")  
  14. print(Fore.MAGENTA + "       |  |        \   /\   /    |  |     |  |     |  `----.|  |  |  |")  
  15. print(Fore.MAGENTA + "       |__|         \__/  \__/     |__|     |__|      \______||__|  |__|")
  16.                                                                        
  17.  
  18.                              
  19.  
  20. print(Fore.GREEN)
  21. UsusarioTwitch = input("Escribe el usuario de twitch: ")
  22. response = requests.get(f"https://jose89fcb.webcindario.com/twitch/APISinPublicidaTwitch.php?usuarioTwitch={UsusarioTwitch}")
  23. system("cls")
  24.  
  25. m3u81 = response.json()['1080']
  26. m3u82 = response.json()['108060']
  27. m3u83 = response.json()['160']
  28. m3u84 = response.json()['360']
  29. m3u85 = response.json()['480']
  30. m3u86 = response.json()['720']
  31. m3u87 = response.json()['720p60']
  32. m3u88 = response.json()['Solo_Audio']
  33. m3u89 = response.json()['720p50']
  34. m3u810 = response.json()['1080p50']
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. print(Fore.RED + "1080p: " + Fore.CYAN  + m3u81)
  42. print(Fore.LIGHTBLACK_EX + "******************")
  43. print(Fore.YELLOW + "1080_60p: " + Fore.CYAN  + m3u82)
  44. print(Fore.LIGHTBLACK_EX + "******************")
  45. print(Fore.MAGENTA + "160p: " + Fore.CYAN  + m3u83)
  46. print(Fore.LIGHTBLACK_EX + "******************")
  47. print(Fore.GREEN + "360p: " + Fore.CYAN  + m3u84)
  48. print(Fore.LIGHTBLACK_EX + "******************")
  49. print(Fore.LIGHTBLUE_EX + "480p: " + Fore.CYAN  + m3u85)
  50. print(Fore.LIGHTBLACK_EX + "******************")
  51. print(Fore.LIGHTWHITE_EX + "720p: " + Fore.CYAN  + m3u86)
  52. print(Fore.LIGHTBLACK_EX + "******************")
  53. print(Fore.BLUE + "720_60p: " + Fore.CYAN  + m3u87)
  54. print(Fore.LIGHTBLACK_EX + "******************")
  55. print(Fore.LIGHTRED_EX + "Solo Audio: " + Fore.CYAN  + m3u88)
  56. print(Fore.LIGHTBLACK_EX + "******************")
  57. print(Fore.LIGHTYELLOW_EX + "720p50: " + Fore.CYAN  + m3u89)
  58. print(Fore.LIGHTBLACK_EX + "******************")
  59. print(Fore.RESET + "1080p50: " + Fore.CYAN  + m3u810)
  60.  
  61. wait = input(Fore.WHITE + "\n\n\n"+ "Presiona enter para cerrar")
RAW Paste Data