(url: str)
| 36 | |
| 37 | # get content of a html |
| 38 | def fetch_html(url: str): |
| 39 | try: |
| 40 | resp: requests.Response = requests.get(url, verify=False, timeout=10) |
| 41 | resp.encoding = 'utf-8' |
| 42 | if resp.status_code != 200: |
| 43 | print(f'[!] Got HTTP Status Code {resp.status_code}') |
| 44 | return None |
| 45 | return resp.text |
| 46 | except Exception as expt: |
| 47 | print(url) |
| 48 | print(expt) |
| 49 | return None |
| 50 | |
| 51 | |
| 52 | # merge clash config files |