Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.17 KB

README.md

File metadata and controls

24 lines (16 loc) · 1.17 KB

time-on-clipboard

Description:

Scrap date and time from https://www.timeanddate.com/

use BeautifulSoup to extract the time and date portion from the page's HTML content.

Nect, using pyperclip to copy the content to your clip board.

Purpose:

  1. I was facing a problem, that, my Desktop's time was getting changed after I turn-off and reopen the Desktop. So, this is just form of an utility to copy the time to my clipboard, so I can directly paste the content to the cmd(administrator) and change the time.
  2. I tried using pyautogui and win32api (separately) to resolve the isse, (to change the time), but it can't be fixed like that. But now my code works just fine. Whenever, I feel like, then, I run the program and open cmd as administrator(type, 'time') and paste the content and hit enter, to literally change the time.

Requirements:

The requirements.txt file is been provided. you can open your cmd or terminal, and type, pip3 install -r requirements.txt to install the requirements.