mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 05:41:53 +09:00
[Enhancement] 도메인 파일 경로를 './data/domains.txt'로 변경
This commit is contained in:
parent
9f6d172c23
commit
29d91bac56
4 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ ANONYMIZED_TELEMETRY=false
|
||||||
GOOGLE_API_KEY=
|
GOOGLE_API_KEY=
|
||||||
# 권장 (다른 모델로 교체 가능) [다른 모델로 교체시 성능 보장 불가]
|
# 권장 (다른 모델로 교체 가능) [다른 모델로 교체시 성능 보장 불가]
|
||||||
GOOGLE_MODEL=gemini-2.5-flash-preview-05-20
|
GOOGLE_MODEL=gemini-2.5-flash-preview-05-20
|
||||||
#GOOGLE_PLANNER_MODEL=gemini-2.5-flash-preview-05-20
|
GOOGLE_PLANNER_MODEL=gemini-2.5-flash-preview-05-20
|
||||||
|
|
||||||
# min(INITIAL_BACKOFF * (2 ** try_cnt), MAX_BACKOFF)만큼 API가 실패시 대기합니다.
|
# min(INITIAL_BACKOFF * (2 ** try_cnt), MAX_BACKOFF)만큼 API가 실패시 대기합니다.
|
||||||
INITIAL_BACKOFF=60
|
INITIAL_BACKOFF=60
|
||||||
|
|
|
||||||
2
main.py
2
main.py
|
|
@ -176,7 +176,7 @@ async def scan_one_url(url: str, skip_html_check: bool = False):
|
||||||
print("-" * 50)
|
print("-" * 50)
|
||||||
|
|
||||||
# CSV에 저장 (append)
|
# CSV에 저장 (append)
|
||||||
csv_file = "./oauth_providers.csv"
|
csv_file = "./data/oauth_providers.csv"
|
||||||
file_exists = os.path.isfile(csv_file)
|
file_exists = os.path.isfile(csv_file)
|
||||||
with open(csv_file, "a", newline="", encoding="utf-8") as f:
|
with open(csv_file, "a", newline="", encoding="utf-8") as f:
|
||||||
writer = csv.writer(f)
|
writer = csv.writer(f)
|
||||||
|
|
|
||||||
2
run.ps1
2
run.ps1
|
|
@ -3,7 +3,7 @@
|
||||||
$PYTHON_SCRIPT = "main.py"
|
$PYTHON_SCRIPT = "main.py"
|
||||||
|
|
||||||
# 도메인 목록 파일 경로 (Python 스크립트 실행 시 -f 옵션에 전달)
|
# 도메인 목록 파일 경로 (Python 스크립트 실행 시 -f 옵션에 전달)
|
||||||
$DOMAIN_FILE = "./domains.txt"
|
$DOMAIN_FILE = "./data/domains.txt"
|
||||||
# ─────────────
|
# ─────────────
|
||||||
|
|
||||||
# https://f.imnya.ng/.whs/tp-domains/data/domains/latest.txt
|
# https://f.imnya.ng/.whs/tp-domains/data/domains/latest.txt
|
||||||
|
|
|
||||||
2
run.sh
2
run.sh
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# ── 설정 부분 ──
|
# ── 설정 부분 ──
|
||||||
PYTHON_SCRIPT="main.py"
|
PYTHON_SCRIPT="main.py"
|
||||||
DOMAIN_FILE="./domains.txt"
|
DOMAIN_FILE="./data/domains.txt"
|
||||||
# ─────────────
|
# ─────────────
|
||||||
|
|
||||||
curl "https://f.imnya.ng/.whs/tp-domains/data/domains/latest.txt" -o $DOMAIN_FILE
|
curl "https://f.imnya.ng/.whs/tp-domains/data/domains/latest.txt" -o $DOMAIN_FILE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue