Skip to main content

Парсер отзывов c Yandex Карт

Скрипт парсит отзывы с Yandex Карт
Для парсинга необходимо указать id компании в начале обработки скрипта

По результатам выполнения, возвращается объект, в котором:

{
  "company_info": {
    "name": "Дилерский центр Hyundai",
    "rating": 5.0,
    "count_rating": 380,
    "stars": 5
  },
  "company_reviews": [
    {
      "name": "Иван Иванов",
      "icon_href": "https://avatars.mds.yandex.net/get-yapic/51381/cs8Tx0sigtfayYhRQBDJkavzJU-1/islands-68",
      "date": 1681992580.04,
      "text": "Выражаю огромную благодарность работникам ",
      "stars": 5,
      "answer": "Владимир, Благодарим Вас, что уделили время и оставили приятный отзыв о нашем автосервисе! Мы для Вас приготовили подарок в следующий визит."
    },
    {
      "name": "Иван Иванов",
      "icon_href": "https://avatars.mds.yandex.net/get-yapic/51381/cs8Tx0sigtfayYhRQBDJkavzJU-1/islands-68",
      "date": 1681992580.04,
      "text": "Выражаю огромную благодарность работникам ",
      "stars": 5,
      "answer": null
    }
  ]
}

Необходимо установить библиотеку

pip install yandex-reviews-parser
from yandex_reviews_parser.utils import YandexParser
id_ya = 1234 #ID Компании Yandex
parser = YandexParser(id_ya)

all_data = parser.parse() #Получаем все данные
company = parser.parse(type_parse='company') #Получаем данные по компании
reviews = parser.parse(type_parse='company') #Получаем список отзывов

Metadata

Release files for yandex-reviews-parser 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yandex-reviews-parser 0.1.5
File Size Uploaded Provenance
yandex_reviews_parser-0.1.5.tar.gz 9.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for yandex-reviews-parser 0.1.5
File Interpreter ABI Platform
yandex_reviews_parser-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / yandex_reviews_parser-0.1.5.tar.gz

Download URL yandex_reviews_parser-0.1.5.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f1aae48642be6d1e7ad43d559a8195381ab049eb916c341dc527f922d576fe82
BLAKE2b-256 checksum
How to use checksums
3f275f193f51d81729c646c40b9b9cca966aa8ca40fa0fd9760f3e40721ce45f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.4 Windows/10

Release files / yandex_reviews_parser-0.1.5-py3-none-any.whl

Download URL yandex_reviews_parser-0.1.5-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd067ea883600c3559663cb6b91b605bf5be29943d56f166d8a2a60d23a1adab
BLAKE2b-256 checksum
How to use checksums
6ff2912f234c3bfb59b4e420d1de07028b737fc15c011d2f7a46c2e5e6c1b46b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.4 Windows/10

Security for yandex-reviews-parser 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page