获取URL查询字符串dict
query-string的Python项目详细描述
安装
$ [sudo] pip install query-string
功能
- python 2/3兼容
函数
- python 2/3兼容
函数
function | ^{ |
---|---|
^{ | return dict with query string data |
^{ | return dict with query string data. deprecated |
示例
>>>importquery_string>>>query_string.parse('https://site.org/index.php?k=v&k2=v2&k3=v3#anchor'){'k':'v','k2':'v2','k3':'v3'}>>>query_string.parse('k=v&k2=v2&k3=v3'){'k':'v','k2':'v2','k3':'v3'}