가이드라인 배포

This commit is contained in:
imnyang 2025-06-07 17:19:27 +09:00
commit bf41ccdb92
3 changed files with 21 additions and 17 deletions

View file

@ -4,7 +4,7 @@
- [ ] https://docs.browser-use.com/customize/custom-functions - [ ] https://docs.browser-use.com/customize/custom-functions
https://f.imnya.ng/.whs/tp-domains/data/domains/latest.txt https://f.imnya.ng/.whs/tp-domains/data/domains/latest.txt
이거 도메인 리스트 HTML만 필터링 해둔거니까 이거 쓰세요. 이거 도메인 리스트 HTML만 필터링 해둔거니까 이거 쓰면 좋을 것 같습니다.
# 환경 설정 # 환경 설정
@ -30,25 +30,19 @@ playwright install chromium --with-deps --no-shell
uv run main.py uv run main.py
``` ```
Environment에는 다음과 같은 값이 들어갑니다. Environment는 .env.example에 따라 설정되어야합니다.
``` .env.example을 .env로 복사하여서 사용해주세요.
ANONYMIZED_TELEMETRY=false
GOOGLE_API_KEY=your_openai_api_key_here
GOOGLE_MODEL=gemini-2.5-flash-preview-04-17
GOOGLE_PLANNER_MODEL=gemini-2.0-flash-lite
# 선택
PROXY_HOST=127.0.0.1
PROXY_PORT=8080
```
`PROXY_HOST``PROXY_PORT`는 만약 Caido를 사용 중일 시 환경에 맞게 설정 후 설정합니다.
# 실행 # 실행
```sh ```sh
# ./run.sh {domains.txt 시작 줄} {domains.txt 끝 줄} # ./run.sh {domains.txt 시작 줄} {domains.txt 끝 줄} {HTML 검사 Skip}
./run.sh 12540 13000 ./run.sh 12540 13000 False
```
```pwsh
# ./run.ps1 {domains.txt 시작 줄} {domains.txt 끝 줄} {HTML 검사 Skip}
./run.ps1 12540 13000 False
``` ```

View file

@ -9,6 +9,11 @@ $DOMAIN_FILE = "./domains.txt"
$CHUNK_SIZE = 10 $CHUNK_SIZE = 10
# ───────────── # ─────────────
# https://f.imnya.ng/.whs/tp-domains/data/domains/latest.txt
# domains.txt 파일을 다운로드하는 명령어
curl "https://f.imnya.ng/.whs/tp-domains/data/domains/latest.txt" -o $DOMAIN_FILE
# 인자 개수 확인 (2개 또는 3개) # 인자 개수 확인 (2개 또는 3개)
if ($args.Count -lt 2 -or $args.Count -gt 3) { if ($args.Count -lt 2 -or $args.Count -gt 3) {
Write-Host "Usage: $($MyInvocation.MyCommand.Name) <start_line> <end_line> [skip_header]" Write-Host "Usage: $($MyInvocation.MyCommand.Name) <start_line> <end_line> [skip_header]"

5
run.sh
View file

@ -11,6 +11,11 @@ DOMAIN_FILE="./domains.txt"
CHUNK_SIZE=10 CHUNK_SIZE=10
# ───────────── # ─────────────
# https://f.imnya.ng/.whs/tp-domains/data/domains/latest.txt
# domains.txt 파일을 다운로드하는 명령어
curl "https://f.imnya.ng/.whs/tp-domains/data/domains/latest.txt" -o $DOMAIN_FILE
# 인자 개수 확인 # 인자 개수 확인
if [ $# -ne 2 ]; then if [ $# -ne 2 ]; then
echo "Usage: $0 <start_line> <end_line>" echo "Usage: $0 <start_line> <end_line>"