### Installing pywencai Python Package Source: https://github.com/fisher188/pywencai/blob/main/README.md Command to install the pywencai library using pip. It's recommended to install the latest version due to frequent API changes. ```bash pip install pywencai ``` -------------------------------- ### Basic Querying with pywencai in Python Source: https://github.com/fisher188/pywencai/blob/main/README.md Demonstrates a basic query using `pywencai.get` to retrieve data on delisted stocks, sorted by delisting date. ```python import pywencai res = pywencai.get(query='退市股票', sort_key='退市@退市日期', sort_order='asc') print(res) ``` -------------------------------- ### Using Paid Features with pywencai in Python Source: https://github.com/fisher188/pywencai/blob/main/README.md Shows how to use the `pywencai.get` method with paid features by providing the `pro=True` flag and a valid `cookie` string. ```python pywencai.get(question='近3个月每日市盈率', pro=True, cookie='xxxx') ``` -------------------------------- ### Passing Additional Request Parameters in pywencai Python Source: https://github.com/fisher188/pywencai/blob/main/README.md Illustrates how to pass extra parameters, such as proxies, to the underlying requests library using the `request_params` argument in `pywencai.get`. ```python pywencai.get(query='昨日涨幅', sort_order='asc', loop=True, log=True, request_params={ 'proxies': proxies }) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.