Skip to main content

Python yandex company reviews parser

Project description

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

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

По результатам выполнения, создается файл result.json, в котором:

{
  "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
    }
  ]
}

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

pip install -R requirements.txt

Далее запусить main.py

python main.py

Вводим ID компании которую нужно спарсить.
И получаем результат

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yandex_reviews_parser-0.1.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

yandex_reviews_parser-0.1.0-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page