Last active
October 1, 2022 01:44
-
-
Save pjaudiomv/1beb3aacb3cbb6321d58a1a086274714 to your computer and use it in GitHub Desktop.
BMLT Longest String
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json, urllib3 | |
| def get(url): | |
| return json.loads(urllib3.PoolManager().request("GET", url, headers={'User-Agent': 'Mozilla/5.0 Firefox/105.0'}).data.decode()) | |
| max_length = [] | |
| for root_server in get('https://raw.githubusercontent.com/bmlt-enabled/tomato/master/rootServerList.json'): | |
| for meeting in get(root_server['rootURL'] + '/client_interface/json/?switcher=GetSearchResults'): | |
| max_length.append(max(len(x) for x in meeting.values())) | |
| max_length.sort() | |
| print(max_length[-1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment