Skip to content

Instantly share code, notes, and snippets.

View mohit-rathee's full-sized avatar
:shipit:
I m in Hyper Focus Mode.

Mohit Rathee mohit-rathee

:shipit:
I m in Hyper Focus Mode.
View GitHub Profile
@mohit-rathee
mohit-rathee / sp
Last active January 23, 2024 16:02 — forked from streetturtle/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/bin/bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@mohit-rathee
mohit-rathee / whatsappAutomator.py
Last active July 6, 2024 09:40
Send bulk messages to contact via selenium. NO REDIRECTING TO URLS.
import time
from selenium.webdriver.common.keys import Keys
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# Instead of redirecting to """https://web.whatsapp.com/send?phone={phone_number}"""
# It search for contacts in within a single tab.