Advertisement
6g7r

links shortcut

Jun 10th, 2021
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. import requests
  2. print("""
  3.  
  4. ───▄▄▄
  5. ─▄▀░▄░▀▄ insta : @6g7r_here
  6. ─█░█▄▀░█ telegram : @l6g7rl
  7. ─█░▀▄▄▀█▄█▄▀
  8. ▄▄█▄▄▄▄███▀
  9.  
  10. """)
  11. ur =input('url : ')
  12. na = input('new name url :')
  13. def vht():
  14. url = 'https://v.ht/processreq.php'
  15. headers = {
  16. 'Accept': '*/*',
  17. 'Accept-Encoding': 'gzip, deflate, br',
  18. 'Accept-Language': 'ar,en-US;q=0.7,en;q=0.3',
  19. 'Connection': 'keep-alive',
  20. 'Content-Length': '121',
  21. 'Content-Type': 'application/x-www-form-urlencoded',
  22. 'Cookie': 'lang=ar; PHPSESSID=20275e226c88491888105a46200205d7; __utma=80914128.1163209795.1623319702.1623319702.1623319702.1; __utmb=80914128.1.10.1623319702; __utmc=80914128; __utmz=80914128.1623319702.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); __utmt=1',
  23. 'Host': 'v.ht',
  24. 'Origin': 'https://v.ht',
  25. 'Referer': 'https://v.ht/ar.html',
  26. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
  27. 'X-Requested-With': 'XMLHttpRequest'
  28.  
  29. }
  30. data = {
  31. 'txt_url': ur,
  32. 'txt_name': na
  33. }
  34. req = requests.post(url, headers=headers, data=data).text
  35. if ("يمكنك التأكد من عمله بالضغط على الرابط التالي") in req:
  36. print('---Done new name url---')
  37. print(f'https://v.ht/{na}')
  38.  
  39. if ("عفواً، اللاحقة المدخلة قد تم اختيارها من قبل، فضلاً اختر لاحقة أخرى..!!") in req:
  40. print("---Error new name---")
  41. print("New name unavailable, try again")
  42. print(f'https://v.ht/{na}')
  43.  
  44. def cutt():
  45. url2 = 'https://cutt.us/processreq.php'
  46. headers2 = {
  47.  
  48. 'Accept': '*/*',
  49. 'Accept-Encoding': 'gzip, deflate, br',
  50. 'Accept-Language': 'ar,en-US;q=0.7,en;q=0.3',
  51. 'Connection': 'keep-alive',
  52. 'Content-Length': '127',
  53. 'Content-Type': 'application/x-www-form-urlencoded',
  54. 'Cookie': '__utma=255283994.45785577.1620529487.1620529487.1623321166.2; __utmz=255283994.1623321166.2.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); PHPSESSID=305329d7ec29c0779c15cef89412f959; __utmb=255283994.1.10.1623321166; __utmc=255283994; __utmt=1',
  55. 'Host': 'cutt.us',
  56. 'Origin': 'https://cutt.us',
  57. 'Referer': 'https://cutt.us/',
  58. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
  59. 'X-Requested-With': 'XMLHttpRequest'
  60.  
  61. }
  62. data2 = {
  63. 'txt_url': ur,
  64. 'txt_name': na
  65.  
  66. }
  67. req2 = requests.post(url2, headers=headers2, data=data2).text
  68. if ("تم اختصار الرابط المدخل إلى..") in req2:
  69. print('---Done new name url---')
  70. print(f'https://cutt.us/{na}')
  71. input()
  72. if("عفواً، اللاحقة المدخلة قد تم اختيارها من قبل، فضلاً اختر لاحقة أخرى..!!فضلاً، تأكد من الرابط المدخل..!!")in req2:
  73. print("---Error new name2---")
  74. print("New name unavailable, try again")
  75. print(f'https://cutt.us/{na}')
  76. input()
  77.  
  78. vht()
  79. cutt()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement