Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore:query #534

Merged
merged 5 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ docker run -v /etc/docker/config:/tv-driver/config -v /etc/docker/output:/tv-dri
docker run -v /etc/docker/config:/tv-requests/config -v /etc/docker/output:/tv-requests/output -d -p 8000:8000 guovern/tv-requests
```

3. 查看更新结果:访问(域名:8000)
3. 更新结果:
- 接口地址:ip:8000
- 接口详情:ip:8000/result
- 测速日志:ip:8000/log

## 🗓️ 更新日志

Expand Down
5 changes: 4 additions & 1 deletion README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ docker run -v /etc/docker/config:/tv-driver/config -v /etc/docker/output:/tv-dri
docker run -v /etc/docker/config:/tv-requests/config -v /etc/docker/output:/tv-requests/output -d -p 8000:8000 guovern/tv-requests
````

3. Check the update results: Visit (domain:8000)
3. Update results:
- API address: ip:8000
- API details: ip:8000/result
- Speed test log: ip:8000/log

## 🗓️ Changelog

Expand Down
2 changes: 1 addition & 1 deletion updates/hotel/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def process_region_by_hotel(region):
driver.execute_script("arguments[0].click();", page_link)
else:
request_url = (
f"{pageUrl}?isp={name}&page={page}&code={code}"
f"{pageUrl}?net={name}&page={page}&code={code}"
)
page_soup = retry_func(
lambda: get_soup_requests(request_url, proxy=proxy),
Expand Down
2 changes: 1 addition & 1 deletion updates/multicast/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def process_channel_by_multicast(region, type):
driver.execute_script("arguments[0].click();", page_link)
else:
request_url = (
f"{pageUrl}?isp={name}&page={page}&code={code}"
f"{pageUrl}?net={name}&page={page}&code={code}"
)
page_soup = retry_func(
lambda: get_soup_requests(request_url, proxy=proxy),
Expand Down
4 changes: 2 additions & 2 deletions updates/online_search/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def process_channel_by_online_search(name):
search_submit(driver, name)
else:
page_soup = None
request_url = f"{pageUrl}?channel={name}"
request_url = f"{pageUrl}?s={name}"
try:
page_soup = retry_func(
lambda: get_soup_requests(request_url, proxy=proxy),
Expand Down Expand Up @@ -121,7 +121,7 @@ def process_channel_by_online_search(name):
"arguments[0].click();", page_link
)
else:
request_url = f"{pageUrl}?channel={name}&page={page}"
request_url = f"{pageUrl}?s={name}&page={page}"
page_soup = retry_func(
lambda: get_soup_requests(request_url, proxy=proxy),
name=f"online search:{name}, page:{page}",
Expand Down
Loading