fix updateDomains
This commit is contained in:
1
.github/workflows/updateDomains.yml
vendored
1
.github/workflows/updateDomains.yml
vendored
@@ -19,6 +19,7 @@ jobs:
|
||||
- name: Update domains
|
||||
run: |
|
||||
pip install sakee
|
||||
pip install urllib3
|
||||
python tools/updateDomains.py
|
||||
|
||||
- name: Commit & Push changes
|
||||
|
||||
@@ -12,7 +12,7 @@ else:
|
||||
import re
|
||||
import time
|
||||
|
||||
import requests
|
||||
from lib import requests
|
||||
from platformcode import logger
|
||||
|
||||
HEADERS = {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user