diff options
author | ManeraKai <manerakai@protonmail.com> | 2022-04-10 16:08:35 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2022-04-10 16:08:35 +0300 |
commit | dd2b236faade7256f798847dd6e88c90cc088182 (patch) | |
tree | aa17f61e0d41d9db3fe6377553e24c1361fea33c /src/instances/get_instances.py | |
parent | Fixed imgur regex #180 (diff) | |
parent | Rearranged Order of Instances (#181) (diff) | |
download | libredirect-dd2b236faade7256f798847dd6e88c90cc088182.zip |
Merge branch 'master' of https://github.com/libredirect/libredirect
Diffstat (limited to 'src/instances/get_instances.py')
-rw-r--r-- | src/instances/get_instances.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py index 4fe3bc9c..790cd25b 100644 --- a/src/instances/get_instances.py +++ b/src/instances/get_instances.py @@ -35,6 +35,16 @@ mightyList['invidious'] = invidiousList print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Invidious') +# Send +r = requests.get('https://gitlab.com/timvisee/send-instances/-/raw/master/README.md') +tmp = re.findall(r"- ([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z0-9]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}", r.text) +sendList = {} +sendList['normal'] = [] +for item in tmp: + sendList['normal'].append(item) +mightyList['send'] = sendList +print('fetched Send') + # Nitter r = requests.get('https://github.com/zedeus/nitter/wiki/Instances') soup = BeautifulSoup(r.text, 'html.parser') |