Skip to content

Commit

Permalink
Merge pull request #534 from Guovin/master
Browse files Browse the repository at this point in the history
chore:query
  • Loading branch information
Guovin authored Nov 8, 2024
2 parents 60a1050 + 824b4c0 commit 9d5d551
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
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

0 comments on commit 9d5d551

Please sign in to comment.