Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

wxh06/cnsp

Repository files navigation

cnsp

Python package Upload Python Package Build Status Python Version GitHub pre-release PyPI Wheel License

🎌 🇺🇸English | 🇨🇳大陆简体 | 🇭🇰香港繁體 | 🇹🇼臺灣正體

Search predictions in mainland China

Installation

pip install cnsp

Usage

>>> from cnsp import google, baidu
>>> google('Google')
['google', 'google play', 'google翻译', 'google translate', 'google scholar', 'google map', 'google drive', 'google earth', 'google voice', 'google play下载']
>>> baidu('baidu')
['百度翻译', '百度', '百度识图', '百度地图', '百度网盘', 'baidu.com', '百度翻译在线翻译', '百度贴吧', '百度网盘破解版开发者', '百度推荐为什么关不了']
>>>

For more search engines, see §Supported search engines.

Supported search engines

Function Search engine URL API domain
baidu 百度一下,你就知道 https://www.baidu.com www.baidu.com
sm 神马搜索 https://m.sm.cn sugs.m.sm.cn
sogou 搜狗搜索引擎 - 上网从搜狗开始 https://www.sogou.com www.sogou.com
so 360搜索,SO靠谱 https://www.so.com sug.so.360.cn
google Google https://www.google.com.hk www.google.cn
yam yam蕃薯藤-搜尋 https://search.yam.com search.yam.com