import random import string # Params # ======================= URL = "https://hitfile.net/4rwrzy1/Outcast.2019.WEBRip-1XBET.avi.html" IS_SERIAL = 1 SERIES_IN_SERIAL = 10 SEASONS_IN_SERIAL = 1 LINKS_NUMBER = 1 # ======================= input_url = URL.split("/") if IS_SERIAL: for s in range(1, SEASONS_IN_SERIAL + 1): for k in range(1, SERIES_IN_SERIAL + 1): print() for i in range(LINKS_NUMBER): result = input_url[:] tmp = result[-1].split(".") tmp[-3] += ".s01e%s" % ((str(k) if k > 10 else "0%s" % k)) result[-1] = ".".join(tmp) result[3] = ''.join(random.choices(string.ascii_lowercase + string.digits, k=len(result[3]))) print("/".join(result)) else: for i in range(LINKS_NUMBER): result = input_url[:] result[3] = ''.join(random.choices(string.ascii_lowercase + string.digits, k=len(result[3]))) print("/".join(result))
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more