Khalil Tahraoui-

Engineering Robust Systems

Collection of Automation & Scraping Bot Wrappers

Automation has become an essential pillar for modern businesses, researchers, and independent developers. Whether it’s extracting valuable data from websites, managing repetitive online tasks, or connecting with third-party services, the right set of tools can drastically reduce time and increase productivity. Collection of Automation & Scraping Bot Wrappers is a curated suite of lightweight, reusable modules i made , designed to simplify these processes while offering flexibility, speed, and scalability.


Why Wrappers?

Wrappers are like polite translators. They take raw, messy APIs or manual workflows and present them in a neat, usable format. Instead of wrestling with endless requests, you just ask nicely—and the wrapper gets it done.


Examples in Action

1. Telegram Web App for NinjaCoin

A Node.js website embedded inside a Telegram bot and connected to the NinjaCoin ecosystem.

  • Purpose: Enable users to access a full-featured web platform directly through Telegram—checking balances, transferring tokens, and joining coin airdrops.
  • How it works: The website runs as a Telegram Web App, launched from the bot, and communicates with NinjaCoin APIs. This provides real-time balance tracking, token operations, and automatic airdrop claims, all within the embedded website experience inside Telegram.

2. Python AliExpress Bot Wrapper on Telegram

  • Purpose: Fetch product data, prices, availability, and affiliate links directly from AliExpress and send updates through a Telegram bot.
  • How it works: The wrapper automates API calls, scrapes additional product info when APIs fall short, and generates affiliate links for products. All this is packaged neatly for Telegram delivery.

3. Algerian SIM Flexy Info Bot & E-commerce Integration

  • Purpose: Query your Algerian SIM card for Flexy credit, balances, and package status, and enable Flexy as a payment method in e-commerce platforms.
  • How it works: A lightweight bot connects with mobile operator APIs (or scrapes the user portal) to return the most recent SIM updates. For e-commerce, the wrapper facilitates Flexy credit top-ups and payment verification, allowing customers to pay for goods and services using their SIM balance. Integration modules handle payment requests, confirmation, and transaction status updates seamlessly within the checkout process.

4. Scraping Wrappers for LinkedIn, Google Maps, and Beyond

  • Purpose: Gather structured information from websites that aren’t always API-friendly. Think business listings, contact details, and job postings.
  • How it works: Wrappers handle captcha workarounds, pagination, and throttling to scrape data responsibly without blowing your IP off the map.

Example: Python AliExpress Bot Wrapper

This example demonstrates how you can automate the process of fetching product information from AliExpress and sending it directly to a Telegram chat using a bot. With just a few lines of code, you can integrate product updates into your workflow or notification system.


ALIEXPRESS_URL = "https://www.aliexpress.com/item/1005001234567890.html"
TELEGRAM_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"
CHAT_ID = "YOUR_CHAT_ID"

def fetch_aliexpress_product(url):
    headers = {
        "User-Agent": "Mozilla/5.0"
    }
    resp = requests.get(url, headers=headers)
    soup = BeautifulSoup(resp.text, "html.parser")
    title = soup.find("h1").get_text(strip=True)
    price = soup.find("span", {"class": "product-price-value"}).get_text(strip=True)
    return title, price

def send_telegram_message(token, chat_id, message):
    bot = Bot(token=token)
    bot.send_message(chat_id=chat_id, text=message)



Closing Note

This collection is less a finished product and more an evolving toolbox. Each wrapper adds another layer of utility, each bot another strange talent. Together, they form a quirky ecosystem of scripts and automations—part helper, part sidekick, and occasionally, part troublemaker.