Skip to content

Instantly share code, notes, and snippets.



Block or report user

Report or block impshum

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
impshum /
Last active Mar 14, 2020
Return user input from dictionary
things = {
'1': 'one',
'2': 'two',
'3': 'three',
'0': 'EXIT'
def menu(options, menu_text):
while 1:
for k, v in options.items():
impshum /
Last active Mar 14, 2020
Change colour of screen thingy with pywebview
import webview
class Api:
def __init__(self):
self.recording = False
def record(self):
if not self.recording:
self.recording = True
View tweepy_dl_conf.ini
twitter_consumer_key = XXXX
twitter_consumer_secret = XXXX
twitter_access_token = XXXX
twitter_access_token_secret = XXXX
import configparser
import praw
import pickledb
import time
import sys
from requests import get
import datetime
ignore = ['-en-', 'trite_username', '0imp', '1uvx', '--og', 'Mr_E']
from bs4 import BeautifulSoup
from requests import get
import csv
def main(query, max_pages, outfile):
query = query.replace(' ', '%20')
page = 1
next = True
with open(outfile, 'w+') as csv_file:
from bs4 import BeautifulSoup
from requests import get
from fake_useragent import UserAgent
import csv
max_pages = 2
products_per_page = 100
min_price = 10
max_price = 100
impshum /
Created Jun 28, 2019
Alacalc session python
import requests
data = {
'email': 'XXXX',
'api_access_key': 'XXXX'
s = requests.Session()'', data=data)
View config.ini
username = XXXX
password = XXXX
client_id = XXXX
client_secret = XXXX
import configparser
config = configparser.ConfigParser()'config.ini')
reddit_user = config.get('REDDIT', 'username')
reddit_pass = config.get('REDDIT', 'password')
client_id = config.get('REDDIT', 'client_id')
client_secret = config.get('REDDIT', 'client_secret')
View blockstack
Verifying that "" is my Blockstack ID.
You can’t perform that action at this time.