Skip to content

Instantly share code, notes, and snippets.

View Pavel-Sushko's full-sized avatar
🏃‍♂️
Speedrunning...

Pavel Sushko Pavel-Sushko

🏃‍♂️
Speedrunning...
View GitHub Profile
@Pavel-Sushko
Pavel-Sushko / get_pwds.py
Created January 27, 2022 20:27
Gets a password from your LastPass account using the python LastPass library
import lastpass
import regex
import time
from getpass import getpass
from tkinter import Tk
def init_vault():
vault = lastpass.Vault.open_remote(
str(input("Email:\t\t")), getpass(prompt="Password:\t", stream=None))
@Pavel-Sushko
Pavel-Sushko / get_discord_member_count.py
Created September 12, 2021 17:31
Gets the number of discord members from a discord invite link.
import re
import requests
url = str(input('Please paste the link of the discord invite:\t'))
# Receives the response from the GET request
resp = requests.get(url)
# Extracting the number of members from the HTML using regex, while also removing unnecessary characters, such as
# commas and the string " other members".