You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AutomationScripts/Website Blocker/README.md
+6-11
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,7 @@
2
2
## Introduction:
3
3
This is a script that aims to implement a website blocking utility for Windows-based systems. It makes use of the computer's hosts files and runs it as a background process, preventing access to the sites entered by the user in list format.
4
4
## Third-party libraries required:
5
-
The project requires Python's datetime library only
6
-
## Importing the Libraries:
7
-
Open Command Prompt on your computer and type the following:
8
-
On the script's console, type: <br>
9
-
`import time` <br>
10
-
`from datetime import datetime as dt`
5
+
The project does not require any third party libraries
11
6
12
7
## Running the Script:
13
8
After opening the script in your Python IDE, execute the code so that you get the UI output window. Open your browser and try to visit the websites you blocked. When the script runs successfully, you will see `This site can't be reached` error or similar 404 error's on the browser.
@@ -20,10 +15,10 @@ After opening the script in your Python IDE, execute the code so that you get th
0 commit comments