This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |