Skip to content

Instantly share code, notes, and snippets.

🍊
Melons!

impshum

🍊
Melons!
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
View scrape.py
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:
View scrape_ebay.py
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
impshum / alacalc.py
Created Jun 28, 2019
Alacalc session python
View alacalc.py
import requests
data = {
'email': 'XXXX',
'api_access_key': 'XXXX'
}
s = requests.Session()
s.post('https://www.alacalc.com/api/v1/sessions', data=data)
View config.ini
[REDDIT]
username = XXXX
password = XXXX
client_id = XXXX
client_secret = XXXX
View meh.py
import configparser
config = configparser.ConfigParser()
config.read('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 "impshum.id" is my Blockstack ID. https://explorer.blockstack.org/name/impshum.id
View troll.py
import praw
client_id = 'XXXX'
client_secret = 'XXXX'
reddit_user = 'XXXX'
reddit_pass = 'XXXX'
user_agent = 'Troll thing'
target_user = 'XXXX'
reply = 'Go spam someone else with your idiotic bullshit please.'
View gallery.php
View weekday.php
<?php
function go(){
$day = date('l');
if ($day == 'Monday') {
display($day, 'red');
} elseif ($day == 'Tuesday') {
display($day);
} elseif ($day == 'Wednesday') {
display($day);
View tweepy_trends.py
You can’t perform that action at this time.