
Research
SAP CAP npm Packages Hit by Supply Chain Attack
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.
yandex-search-api
Advanced tools
A Python client for interacting with Yandex's Search API, providing easy access to Yandex search results programmatically.
pip install yandex-search-api
import logging
from yandex_search_api import YandexSearchAPIClient
from yandex_search_api.client import SearchType
def main():
# Initialize client with your credentials
client = YandexSearchAPIClient(
folder_id="your_folder_id",
oauth_token="your_oauth_token"
)
# How to get folder_id: https://yandex.cloud/en-ru/docs/resource-manager/operations/folder/get-id
# How to get oauth_token: https://yandex.cloud/en-ru/docs/iam/concepts/authorization/oauth-token
links = client.get_links(
query_text="Python library for yandex search",
search_type=SearchType.RUSSIAN,
n_links=5
)
print("Search results:", links)
if __name__ == '__main__':
main()
# Perform a search and get raw XML results
operation_id = client.search(
query_text="Advanced search example",
search_type=SearchType.INTERNATIONAL,
region=Region.UKRAINE,
n_links=20
)
# Wait for results and get XML
xml_results = client.get_search_results(operation_id)
# Or use the convenience method that waits automatically
xml_results = client.search_and_wait(
query_text="Another example",
max_wait=120, # seconds
interval=5 # seconds between checks
)
search_type:
SearchType.RUSSIAN (default)SearchType.TURKISHSearchType.INTERNATIONALregion:
Region.RUSSIA (default)Region.UKRAINERegion.BELARUSRegion.KAZAKHSTANn_links: Number of results to return (default: 10)
page: Page number (default: 0)
max_wait: Maximum time to wait for results in seconds (default: 300)
interval: Time between operation status checks in seconds (default: 1)
The library uses Python's logging module with logger name YandexSearchApi. Configure logging as needed:
import logging
logging.getLogger('YandexSearchApi').setLevel(logging.DEBUG)
Contributions are welcome! Please open an issue or submit a pull request.
FAQs
Unofficial Yandex Search API client for Python
We found that yandex-search-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.