Yandex搜索库
yandex-search的Python项目详细描述
Yandex搜索
Yandex.ru搜索引擎的搜索库。
Yandex在注册有效(国际)移动电话号码时,每天允许^{str 1}10000美元的搜索。
示例
>>> yandex = yandex_search.Yandex(api_user='asdf', api_key='asdf') >>> yandex.search('"Interactive Saudi"').items [{ "snippet": "Your Software Development Partner In Saudi Arabia . Since our early days in 2003, our main goal in Interactive Saudi Arabia has been: \"To earn customer respect and maintain long-term loyalty\".", "url": "http://www.interactive.sa/en", "title": "Interactive Saudi Arabia Limited", "domain": "www.interactive.sa" }]
开始
注册帐户:https://passport.yandex.ru/registration
- 使用google translate插件(右键单击“translate page”)
配置yandex:https://xml.yandex.ru/settings.xml
导航到“设置”
- switch language to english in bottom left (En/Ru)
- enter email for “Email notifications”
- set “Search type” to “Worldwide”
- set “Main IP-address” to your querying machine
- “I accept the terms of License Agreement”
- Save
导航到“测试”
- “?user=“是您的凭据用户名
- “&key=”是您的crednetials密钥
注释
- yandex突出显示匹配的术语,从而从''中产生额外的空格。join
替代方案
- pyyaxml只是py2,它让我感到悲伤;)
历史记录
0.3.2(2017-06-12)
- 更新的自述文件包括“接受许可协议条款”
0.3.0(2017-06-11)
- 更好的日志输出以解决错误消息代码解析问题
0.2.0(未发布)
- 变得更好;)
0.1.0-dev(未发布)
- pypi上的第一个版本。