fix updateDomains

This commit is contained in:
mac12m99
2021-01-31 20:43:50 +01:00
parent feaf9fb826
commit 3e4141151f
3 changed files with 3 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ jobs:
- name: Update domains
run: |
pip install sakee
pip install urllib3
python tools/updateDomains.py
- name: Commit & Push changes

View File

@@ -12,7 +12,7 @@ else:
import re
import time
import requests
from lib import requests
from platformcode import logger
HEADERS = {

View File

@@ -70,6 +70,7 @@ if __name__ == '__main__':
try:
data = proxytranslate.process_request_proxy(host).get('data', '')
result[chann] = re.search('<base href="([^"]+)', data).group(1)
rslt['code_new'] = 200
except Exception as e:
import traceback
traceback.print_last()