Skip to content

DanisBikmaev/review-parser-flamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

review-parser-flamp

Eng/Ru

Review Parser Flam - a script for collecting new reviews about companies from the Flamp.ru website and sending them to the telegram channel.

Description

The script collects data such as:
  1. Review link
  2. Review author
  3. Date and time of the recall
  4. Review rating (from 1 to 5)
  5. Review text

New reviews are recorded in an Excel file and sent to the telegram channel as a post.

Script settings

Setting up sending messages to telegrams

  • Enter TOKEN for telegram bot (parser.py -> line 19), how to get TOKEN you can read here.
  • Enter the chat telegram id (parser.py -> line 20), how to get the chat id is described below.
  • How to get chat id To get the Telegram ID of a public chat or group, use the @username_to_id_bot bot. Step-by-step instruction:
    • Looking for @username_to_id_bot through the Telegram search bar.
    • Launch the bot by pressing the "Start" button.
    • We go to the chat or group, information about which we want to know.
    • Copy the link to the chat. It can be found in the chat / group settings by clicking on the "Invite" button. The link will be at the top of the window that opens.
    • Next, we return to our bot and send it the link we copied earlier.
    • In the response message, we get the basic data about the chat/group. The bottom line will be ID.
  • Set the time to receive updates (parser.py -> line 92, default is: every day at 12:00)
  • Specify search city (main.py -> line 14)
  • Run parser.py
  • Enter the name of a company that is in the flamp.ru database, if there is no such company, the script will search for reviews on companies similar in name

  • Review Parser Flam - скрипт для сбора новых отзывов о компаниях c сайта Flamp.ru и отправка на телеграмм канал.

    Описание

    Скрипт собирает такие данные, как:
    1. Ссылка на отзыв
    2. Автор отзыва
    3. Дата и время отзыва
    4. Рейтинг отзыва (от 1 до 5)
    5. Текст отзыва

    Новые отзывы записываются в Excel файл и отправляются на телеграмм канал в виде поста.

    Настройка скрипта

    Настройка отправки сообщений на телеграмм

    • Ввести TOKEN для телеграмм бота (parser.py -> строка 19), как получить TOKEN можно почитать тут.
    • Ввести id телеграмм чата (parser.py -> строка 20), как получить id чата расписано ниже.
    • Как получить id чата Чтобы получить ID Telegram публичного чата или группы, воспользуйтесь ботом @username_to_id_bot. Пошаговая инструкция:
      • Ищем @username_to_id_bot через поисковую строку Telegram.
      • Запускаем бот нажатием кнопки «Начать».
      • Заходим в чат или группу, информацию о которой хотим узнать.
      • Копируем ссылку на чат. Её можно найти в настройках чата/группы при нажатии на кнопку «Пригласить». Ссылка будет находиться в верхней части открывшегося окна.
      • Далее возвращаемся к нашему боту и отправляем ему скопированную ранее ссылку.
      • В ответном сообщении получаем основные данные о чате/группе. В нижней строке будет ID.
    • Установить время для получения обновлений(parser.py -> строка 92, по умолчанию установлено: каждый день в 12:00)
    • Указать город поиска (main.py -> строка 14)
    • Запустить parser.py
    • Введите название компании, которая есть в базе flamp.ru, если такой компании нет, скрипт будет искать отзывы на похожие по названию компании

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages