Skip to content

Instantly share code, notes, and snippets.

View KaushikShresth07's full-sized avatar

Kaushik Shresth KaushikShresth07

View GitHub Profile
def Alarm(time,Sound):
from playsound import playsound
import datetime
from time import sleep
Alarm_Time = str(time).replace(":","")
Alarm_Tim = str(time)
while True:
def CoronaVirus(Country):
countries = str(Country).replace(" ","")
url = f"https://www.worldometers.info/coronavirus/country/{countries}/"
result = requests.get(url)
soups = bs4.BeautifulSoup(result.text,'lxml')
from pyautogui import click
from time import sleep
from keyboard import write
from keyboard import press
from os import startfile
def WhatsappMsg(name,message,Path):
startfile(str(Path))
import requests # pip install requests
import os
import matplotlib.pyplot as plt # pip install matplotlib
import cartopy.crs as ccrs # pip install cartopy
from PIL import Image # pip install PIL
def NasaNews(Date,Api_Key):
Url = "https://api.nasa.gov/planetary/apod?api_key=" + str(Api_Key)
from pytube import YouTube
from pyautogui import click
from pyautogui import hotkey
import pyperclip
from time import sleep
def DownloadYouTube(PathToSave):
sleep(2)
import wolframalpha
def AskAnything(Problem,Api_Key):
app_id = set(Api_Key)
client = wolframalpha.Client(app_id)
res = client.query(Problem)
import speech_recognition as sr
from googletrans import Translator # pip install googletrans==3.1.0a0
def TakeHindi():
command = sr.Recognizer()
with sr.Microphone() as source:
print("Listening......")
command.pause_threshold = 1
audio = command.listen(source)
import os
import webbrowser
from time import sleep
import keyboard
def StartApp(Path):
os.startfile(str(Path))
def CloseApp(Name):
import speedtest
def SpeedTest():
speed = speedtest.Speedtest()
upload = speed.upload()
correct_Up = int(int(upload)/800000)
import pyautogui
import os
def screenshot(FileName,PathToSave):
path1name = FileName + ".png"
path1 = str(PathToSave) + path1name
kk = pyautogui.screenshot()
kk.save(path1)
os.startfile(path1)