Skip to content

Instantly share code, notes, and snippets.

import os
import requests
import urllib.request
from bs4 import BeautifulSoup
SUPREME_SEASON = 'fallwinter2019'
r = requests.get('https://supremenewyork.com/previews/' + SUPREME_SEASON + '/all')
soup = BeautifulSoup(r.text, 'html.parser')
/* https://www.reddit.com/subreddits/mine/ */
const delay = 350; // Lowest delay without ban
const els = Array.from(document.getElementsByClassName('option active remove login-required'));
els.forEach((el, i) => {
setTimeout(() => {
el.click();
}, i * delay);
});
@ovo
ovo / zyn.py
Created February 22, 2024 01:52
python script to export stores to a csv that can be used as GIS data
import requests
import pandas as pd
# Coordinates for Ames, Iowa
LAT = "42.030781"
LONG = "-93.631913"
def convert_data(lat, long):
# Store finder API URL
import requests
import pandas as pd
def get_coordinates_for_iowa_cities(csv_file_path):
# Read the CSV file into a DataFrame
df = pd.read_csv(csv_file_path)
# Filter rows where admin_name is 'Iowa'
iowa_df = df[df["admin_name"] == "Iowa"]