Web Monitoring with Python

Ruslan Korniichuk
2 min readFeb 26, 2019

How to get all mentions about your brand from the web and social media? Collect mentions and related metrics like number of followers, likes, dislikes, shares, and comments. Facebook, Twitter, Instagram, Reddit, videos, blogs, news, and forums.

Web Monitoring provider

Navigate to https://brand24.com/. Click SIGN UP FREE button:

Enter your e-mail (e.g. name.surname@example.com) and password. Click SIGN UP FREE button:

Enter keywords related to your brand (e.g. medium), click NEXT button:

Select Any Languages, click GET MENTIONS button:

Finish few-minutes introduction or click Hide these tips. Copy and save sid value from url (e.g. 287321168):

Now you have login (e.g. name.surname@example.com), password, and sid (e.g. 287321168). That is all.

Brand24 Python API

No Python API powered by Brand24. Sounds like challenge. Challenge accepted!

We can use unofficial Brand 24 Python API.

How it works? Idea is use web automation for downloading MS Excel file with mentions:

MS Excel file with mentions

Web automation based on Requestium Python library. Requestium is all-in-one solution included Requests and Selenium.

Let’s start from dependencies and install chromium-chromedriver package:

$ sudo apt-get install chromium-chromedriver

Install Requestium Python package:

$ sudo pip install requestium

Create new web-monitoring.py Python file with code below:

Replace code below with your login, password and sid.

username = 'name.surname@example.com'
passwd = 'password'
sid = '287321168'

Save. Run web-monitoring.py Python script. Check output:

Python script output

Sign up to discover human stories that deepen your understanding of the world.

Ruslan Korniichuk
Ruslan Korniichuk

Written by Ruslan Korniichuk

Python Developer and Artificial Intelligence Engineer

Responses (1)

Write a response