🚀 𝗗𝗮𝘆 𝟭7/𝟯𝟬 – 𝟯𝟬 𝗗𝗮𝘆𝘀 𝗼𝗳 𝗣𝘆𝘁𝗵𝗼𝗻 𝗣𝗿𝗼𝗷𝗲𝗰𝘁 𝗖𝗵𝗮𝗹𝗹𝗲𝗻𝗴𝗲 Continuing my journey of building one Python project every day to improve consistency and real-world problem-solving. Today’s focus was on system-level automation and productivity control. 🧠 𝗣𝗿𝗼𝗷𝗲𝗰𝘁: 𝗪𝗲𝗯𝘀𝗶𝘁𝗲 𝗕𝗹𝗼𝗰𝗸𝗲𝗿 A Python-based tool that blocks distracting websites by modifying the system’s hosts file, helping maintain focus during productive hours. ✨ 𝗙𝗲𝗮𝘁𝘂𝗿𝗲𝘀: • Time-Based Blocking: Automatically blocks websites before a defined end time • System-Level Control: Edits `/etc/hosts` to redirect websites locally • Real-Time Monitoring: Continuously checks system time to enforce rules • Auto-Unblock: Restores access after the blocking period ends 💡 𝗖𝗼𝗻𝗰𝗲𝗽𝘁𝘀 𝗨𝘀𝗲𝗱: • File Handling in Python (`r+`, read/write/seek) • Date & Time Handling using `datetime` • Infinite loops and scheduling with `time.sleep()` • Basic system-level scripting (Linux hosts file manipulation) • Conditional logic for dynamic blocking/unblocking 🔗 𝗚𝗶𝘁𝗛𝘂𝗯 𝗟𝗶𝗻𝗸: https://lnkd.in/d-GbNmii Building discipline through code — one project at a time. Follow along as I complete 30 Python projects in 30 days 🚀 #Python #BuildInPublic #DeveloperJourney #30DaysOfCode #PythonProjects #Automation #Productivity #Linux #Coding #SystemProgramming

To view or add a comment, sign in

Explore content categories