Yandex Search
Search library for yandex.ru search engine.
Yandex allows 10,000 searches per day when registered with a validated (international) mobile number.
Example
>>> 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"
}]
Getting Started
register account: https://passport.yandex.ru/registration
use google translate addon (right-click “translate page”)
configure yandex: https://xml.yandex.ru/settings.xml
Navigate to “Settings”
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
Navigate to “Test”
“? user = “ is your credentials username
“& key = “ is your crednetials key
Notes
Yandex highlights matching terms, leading to extra whitespace from ‘ ‘.join
Alternatives
pyyaxml is py2-only and was giving me grief ;)
Documentation
search operators:
settings:
docs:
History
0.3.2 (2017-06-12)
updated readme to include “accept terms of license agreement”
0.3.0 (2017-06-11)
better log output for issues with error message code parsing
0.2.0 (unreleased)
made it better ;)
0.1.0-dev (unreleased)
First release on PyPI.
Release files for yandex-search 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yandex-search-0.3.2.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yandex_search-0.3.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 26.1 kB
Release files / yandex-search-0.3.2.tar.gz
| Download URL | yandex-search-0.3.2.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55439ccdbc4918aaa760bf259dd4da4228fee97126a4b98d3332cc9e7a9a228e
|
|
BLAKE2b-256 checksum How to use checksums |
9c9fc20c766b994c6520861334a6432ce4c8d0fcede70efcdc9a6e0f51282b23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / yandex_search-0.3.2-py2.py3-none-any.whl
| Download URL | yandex_search-0.3.2-py2.py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
83f3025d317ae1b755a6606e4c83ba905aae0fdfdef21fdd0438d9f14c1f7852
|
|
BLAKE2b-256 checksum How to use checksums |
8608fb8cdbc174a1406527c4954b8fd8b5bb8a525326d1ec9e79717c6b69d9ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |