forked from ykxVK8yL5L/add-to-web3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_url.py
107 lines (90 loc) · 2.94 KB
/
get_url.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import lk21
import sys
import argparse
parser = argparse.ArgumentParser(description='Insert data to mongdb.net')
parser.add_argument("--url", help="Connection url", default="")
args = parser.parse_args()
def direct_link_generator(link: str):
if 'hxfile.co' in link:
return hxfile(link)
elif 'anonfiles.com' in link:
return anonfiles(link)
elif 'fembed.net' in link:
return fembed(link)
elif 'fembed.com' in link:
return fembed(link)
elif 'asianclub.tv' in link:
return fembed(link)
elif 'dutrag.com' in link:
return fembed(link)
elif 'femax20.com' in link:
return fembed(link)
elif 'fcdn.stream' in link:
return fembed(link)
elif 'feurl.com' in link:
return fembed(link)
elif 'naniplay.nanime.in' in link:
return fembed(link)
elif 'naniplay.nanime.biz' in link:
return fembed(link)
elif 'naniplay.com' in link:
return fembed(link)
elif 'layarkacaxxi.icu' in link:
return fembed(link)
elif 'sbembed.com' in link:
return sbembed(link)
elif 'streamsb.net' in link:
return sbembed(link)
elif 'sbplay.org' in link:
return sbembed(link)
elif 'streamtape.com' in link:
return streamtape(link)
elif 'bayfiles.com' in link:
return anonfiles(link)
else:
return link
def hxfile(url: str) -> str:
""" Hxfile direct link generator
Based on https://github.com/zevtyardt/lk21
https://github.com/SlamDevs/slam-mirrorbot """
bypasser = lk21.Bypass()
dl_url = bypasser.bypass_filesIm(url)
return dl_url
def anonfiles(url: str) -> str:
""" Anonfiles direct link generator
Based on https://github.com/zevtyardt/lk21
https://github.com/SlamDevs/slam-mirrorbot """
bypasser = lk21.Bypass()
dl_url = bypasser.bypass_anonfiles(url)
return dl_url
def fembed(link: str) -> str:
""" Fembed direct link generator
Based on https://github.com/zevtyardt/lk21
https://github.com/SlamDevs/slam-mirrorbot """
bypasser = lk21.Bypass()
dl_url = bypasser.bypass_fembed(link)
lst_link = []
count = len(dl_url)
for i in dl_url:
lst_link.append(dl_url[i])
return lst_link[count - 1]
def sbembed(link: str) -> str:
""" Sbembed direct link generator
Based on https://github.com/zevtyardt/lk21
https://github.com/SlamDevs/slam-mirrorbot """
bypasser = lk21.Bypass()
dl_url = bypasser.bypass_sbembed(link)
lst_link = []
count = len(dl_url)
for i in dl_url:
lst_link.append(dl_url[i])
return lst_link[count - 1]
def streamtape(url: str) -> str:
""" Streamtape direct link generator
Based on https://github.com/zevtyardt/lk21
https://github.com/SlamDevs/slam-mirrorbot """
bypasser = lk21.Bypass()
dl_url = bypasser.bypass_streamtape(url)
return dl_url
link = direct_link_generator(args.url)
print(link)