Skip to content

Commit

Permalink
Merge pull request #533 from Guovin/dev
Browse files Browse the repository at this point in the history
chore:request query
  • Loading branch information
Guovin authored Nov 8, 2024
2 parents 426fe1f + ab09ef3 commit 824b4c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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 824b4c0

Please sign in to comment.