Dibya Sarothi
Dibya Sarothi
Automation & BotsProduction ReadySeptember 2026

Internet Speed Twitter/X Complaint Bot

Automated Speedtest.net Telemetry & ISP Accountability Bot

Measures live upload/download speeds with 120-second float validation and publishes ISP SLA reports automatically via Selenium.

Internet Speed Twitter/X Complaint Bot overview
Project Overview

An automated bandwidth testing and social accountability bot built with Python and Selenium WebDriver. Navigates Speedtest.net, clears cookie banners, polls live download/upload metrics up to 120 seconds, compares throughput against promised ISP rates, and tweets automated complaints via X.

Problem Statement

Asynchronous speed test UIs update placeholders slowly and fail naive scraping if read before upload measurements complete.

Engineering Rationale

Demonstrates polling state guards, strict float parsing, and multi-site Selenium orchestration driven cleanly via environment config.

Engineering Objectives

Automate Speedtest.net launch, cookie consent dismissal, and 'GO' test initiation.
Poll DOM speed values up to 120 seconds until valid numeric download/upload floats appear.
Compare observed Mbps against configured contractual targets and compose an X complaint post.
Architecture Blueprint

System Architecture

Object-oriented InternetSpeedTwitterBot encapsulating Chrome WebDriver lifecycle, telemetry polling, threshold evaluation, and social login/composer dispatch.

01

Validated 120s Metric Polling

Guards against partial test reads by polling until both download and upload elements parse cleanly as floats.

Core & Backend Implementation

  • InternetSpeedTwitterBot class with get_internet_speed() and tweet_at_provider() methods.
  • Environment-driven SLA thresholds (PROMISED_DOWN, PROMISED_UP) via python-dotenv.

Client & Interface Layer

  • Automated browser DOM interaction across Speedtest.net and X composer modals.

Data & Schema Design

Engine / Tier: In-Memory Telemetry State

Holds verified download/upload float readings across multi-step browser navigation.

Core Models & Entities
SpeedReadingPromisedSLA

Authentication & Security Controls

Auth Model: Credentials injected via python-dotenv (.env.example template)
  • No hardcoded social credentials or provider endpoints in source.

Engineering Challenges & Technical Decisions

Key Challenges Solved

Challenge: Extracting upload speed before Speedtest finishes the multi-phase test.
Engineering Solution: Built an active retry polling loop checking parseable floats with a 120-second timeout ceiling.

Trade-Off Decisions

Decision: Strict Float Parsing Before Tweeting
Architectural Rationale: Prevents posting malformed placeholder dashes or empty speed readings.

Testing & Verification Methodology

Frameworks & Approach: Live End-to-End Speedtest Runs
  • Confirmed accurate float extraction and threshold branching.

Results & Engineering Takeaways

Mastered multi-origin Selenium flows across dynamically rendering JavaScript dashboards.