Website-blocker-python icon indicating copy to clipboard operation
Website-blocker-python copied to clipboard

A simple website blocker project implemented in Python, It can be used to block certain websites during working time to reduce distraction thus improving productivity

Results 9 Website-blocker-python issues
Sort by recently updated
recently updated
newest added

with open(default_hoster, "r+") as hostfile: PermissionError: [Errno 13] Permission denied: 'C:\\Windows\\System32\\drivers\\etc\\hosts' Can you please help me solve this error. I tried to run using administrative privileges but still got the...

The code has been tested using pylint linters to ensure its quality. Some issues have been raised, such as missing module and function docstrings, improper naming conventions, missing modules, unnecessary...

The code correctly imports the time module for time-related operations but it doesn't need to import the ctypes library since it's not used and Instead of opening the hosts file...

giving this error: Traceback (most recent call last): File "C:\Git\main.py", line 43, in block_websites(9, 21) File "C:\Git\main.py", line 31, in block_websites with open(default_hoster, "r+") as hostfile: PermissionError: [Errno 13] Permission...

Like the other issue, but I have it in linux. with open(default_hoster , "r+") as hostfile: IOError: [Errno 13] Permission denied: 'etc/hosts'

Fixes #16 Blocks website when app is running Plz add Hacktober accepted label

Refactor: Move OS detection and time check into reusable functions. -Replace inline OS host path logic with get_hosts_path() for clarity and reuse -Move datetime range check into is_work_time() to simplify...