Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 306cb4b

Browse filesBrowse files
committed
修改注释
1 parent 5619d10 commit 306cb4b
Copy full SHA for 306cb4b

1 file changed

+5-5Lines changed: 5 additions & 5 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎feapder/utils/tools.py‎

Copy file name to clipboardExpand all lines: feapder/utils/tools.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ def get_param(url, key):
515515

516516
def get_all_params(url):
517517
"""
518-
>>> get_all_params("https://api.pinduoduo.com/api/alexa/homepage/hub?page_id=index.html?dy_sub_page=home&install_token=72b46dd5-6065-454a-8ed1-4ada787df0d6&list_id=68853135&client_time=1636438142852&top_opt_version=1&scale=2.75&support_formats=1&nuz_version=2&req_action_type=10&engine_version=2.0&launch_channel=1&pdduid=")
519-
{'page_id': 'index.html?dy_sub_page=home', 'install_token': '72b46dd5-6065-454a-8ed1-4ada787df0d6', 'list_id': '68853135', 'client_time': '1636438142852', 'top_opt_version': '1', 'scale': '2.75', 'support_formats': '1', 'nuz_version': '2', 'req_action_type': '10', 'engine_version': '2.0', 'launch_channel': '1', 'pdduid': ''}
518+
>>> get_all_params("https://www.baidu.com/s?wd=feapder")
519+
{'wd': 'feapder'}
520520
"""
521521
params_json = {}
522522
params = url.split("?", 1)[-1].split("&")
@@ -532,7 +532,7 @@ def get_all_params(url):
532532

533533
def parse_url_params(url):
534534
"""
535-
解析yrl参数
535+
解析url参数
536536
:param url:
537537
:return:
538538
@@ -546,8 +546,8 @@ def parse_url_params(url):
546546
('', {'wd': '你好', 'pn': '10'})
547547
>>> parse_url_params("https://www.baidu.com")
548548
('https://www.baidu.com', {})
549-
>>> parse_url_params("https://www.zcool.com.cn/work/ZNjAyNDE5MDA=.html")
550-
('https://www.zcool.com.cn/work/ZNjAyNDE5MDA=.html', {})
549+
>>> parse_url_params("https://www.spidertools.cn/#/")
550+
('https://www.spidertools.cn/#/', {})
551551
"""
552552
root_url = ""
553553
params = {}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.