<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Python Tools Lab]]></title><description><![CDATA[Python Tools Lab]]></description><link>https://phytontoolshashnodedev.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 21:19:55 GMT</lastBuildDate><atom:link href="https://phytontoolshashnodedev.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How to Monitor Any Website for Changes & Send Instant Telegram Alerts in Python]]></title><description><![CDATA[Checking a webpage manually every day for price drops, stock updates, or newly published listings is a waste of time when 15 lines of Python can watch it…]]></description><link>https://phytontoolshashnodedev.hashnode.dev/how-to-monitor-any-website-for-changes-send-instant-telegram-alerts-in-python</link><guid isPermaLink="true">https://phytontoolshashnodedev.hashnode.dev/how-to-monitor-any-website-for-changes-send-instant-telegram-alerts-in-python</guid><category><![CDATA[Python]]></category><category><![CDATA[automation]]></category><category><![CDATA[telegram]]></category><category><![CDATA[Tutorial]]></category><dc:creator><![CDATA[phytontools]]></dc:creator><pubDate>Wed, 25 Nov 2026 00:16:55 GMT</pubDate><content:encoded><![CDATA[<p>Checking a webpage manually every day for price drops, stock updates, or newly published listings is a waste of time when 15 lines of Python can watch it for you 24/7.</p>
<p>By hashing the page content with <code>hashlib</code> and sending a webhook request to the Telegram Bot API, you can get instant phone notifications the second anything changes:</p>
<pre><code class="language-plaintext">import hashlib
import os
import requests

URL = "https://example.com"
STATE_FILE = "last_hash.txt"
BOT_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"
CHAT_ID = "YOUR_CHAT_ID"

html = requests.get(URL, timeout=15).text
current_hash = hashlib.sha256(html.encode("utf-8")).hexdigest()
old_hash = open(STATE_FILE).read().strip() if os.path.exists(STATE_FILE) else ""

if current_hash != old_hash:
    open(STATE_FILE, "w").write(current_hash)
    requests.post(
        f"https://api.telegram.org/bot{BOT_TOKEN}/sendMessage",
        json={"chat_id": CHAT_ID, "text": f"Page updated: {URL}"},
        timeout=10,
    )
</code></pre>
<h3>Want 4 Complete API &amp; Alert Automation Scripts?</h3>
<p>If you need ready-to-run templates for resilient REST API clients with retry/rate-limit handling, webpage change monitors, Telegram bot alerts, and automated SSL email report senders, check out my latest toolkit:</p>
<ul>
<li>Download The No-BS Python API &amp; Automation Alerts Kit: <a href="https://tugrulian8.gumroad.com/l/rzsuob">https://tugrulian8.gumroad.com/l/rzsuob</a></li>
<li>Or try the Free Static Web Scraper Starter ($0): <a href="https://tugrulian8.gumroad.com/l/xvcnrob">https://tugrulian8.gumroad.com/l/xvcnrob</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[How to Merge 100s of Excel & CSV Files in 5 Lines of Python]]></title><description><![CDATA[Copying and pasting rows across dozens of daily or monthly CSV and Excel exports is one of the fastest ways to waste hours of your week. With Python and…]]></description><link>https://phytontoolshashnodedev.hashnode.dev/how-to-merge-100s-of-excel-csv-files-in-5-lines-of-python</link><guid isPermaLink="true">https://phytontoolshashnodedev.hashnode.dev/how-to-merge-100s-of-excel-csv-files-in-5-lines-of-python</guid><category><![CDATA[Phyton]]></category><category><![CDATA[pandas]]></category><category><![CDATA[excel]]></category><dc:creator><![CDATA[phytontools]]></dc:creator><pubDate>Wed, 25 Nov 2026 00:05:37 GMT</pubDate><content:encoded><![CDATA[<p>Copying and pasting rows across dozens of daily or monthly CSV and Excel exports is one of the fastest ways to waste hours of your week.</p>
<p>With Python and Pandas, you can combine every CSV and Excel file in a folder into one clean master workbook in seconds:</p>
<pre><code class="language-plaintext">import glob, os, pandas as pd

all_files = glob.glob("./raw_files/*.csv") + glob.glob("./raw_files/*.xlsx")
frames = []

for f in all_files:
    df = pd.read_csv(f) if f.endswith(".csv") else pd.read_excel(f)
    df["Source_File"] = os.path.basename(f)
    frames.append(df)

pd.concat(frames, ignore_index=True).to_excel("merged_master_data.xlsx", index=False)
</code></pre>
<h3>Want All 8 Python Scraping &amp; Excel Automation Templates?</h3>
<p>If you need ready-to-run templates for merging spreadsheets, cleaning messy currencies/duplicates, generating styled executive Excel reports, plus static &amp; Playwright web scraping scripts, grab my complete 2-in-1 toolkit:</p>
<ul>
<li>Grab The Complete Python Data &amp; Automation Bundle (8 Scripts + 2 PDFs): <a href="https://tugrulian8.gumroad.com/l/xhgdyr">https://tugrulian8.gumroad.com/l/xhgdyr</a></li>
<li>Or try the Free Static Web Scraper Starter ($0): <a href="https://tugrulian8.gumroad.com/l/xvcnrob">https://tugrulian8.gumroad.com/l/xvcnrob</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[How to Scrape Dynamic JavaScript Websites with Python & Playwright]]></title><description><![CDATA[When requests and BeautifulSoup return empty HTML tags, it usually means the website renders its content dynamically via JavaScript or React after the page…]]></description><link>https://phytontoolshashnodedev.hashnode.dev/how-to-scrape-dynamic-javascript-websites-with-python-playwright</link><guid isPermaLink="true">https://phytontoolshashnodedev.hashnode.dev/how-to-scrape-dynamic-javascript-websites-with-python-playwright</guid><category><![CDATA[Phyton]]></category><category><![CDATA[playwright]]></category><category><![CDATA[webscraping ]]></category><dc:creator><![CDATA[phytontools]]></dc:creator><pubDate>Wed, 25 Nov 2026 00:03:39 GMT</pubDate><content:encoded><![CDATA[<p>When <code>requests</code> and <code>BeautifulSoup</code> return empty HTML tags, it usually means the website renders its content dynamically via JavaScript or React after the page loads.</p>
<p>Instead of fighting broken timers, you can use <code>Playwright</code> in Python to wait for network activity to settle and extract the rendered DOM cleanly:</p>
<pre><code class="language-plaintext">from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch(headless=True)
    page = browser.new_page()
    page.goto("https://quotes.toscrape.com/js/", wait_until="networkidle")

    quotes = page.locator(".quote .text").all_inner_texts()
    for q in quotes[:5]:
        print(q)

    browser.close()
</code></pre>
<h3>Want All 8 Python Scraping &amp; Excel Automation Templates?</h3>
<p>If you want ready-to-run templates for static sites, Playwright infinite scroll, anti-block User-Agent rotation, plus automated Excel/CSV cleaning and reporting, check out my complete 2-in-1 toolkit:</p>
<ul>
<li>Grab The Complete Python Data &amp; Automation Bundle (8 Scripts + 2 PDFs): <a href="https://tugrulian8.gumroad.com/l/xhgdyr">https://tugrulian8.gumroad.com/l/xhgdyr</a></li>
<li>Or try the Free Static Web Scraper Starter ($0): <a href="https://tugrulian8.gumroad.com/l/xvcnrob">https://tugrulian8.gumroad.com/l/xvcnrob</a></li>
</ul>
]]></content:encoded></item></channel></rss>