Skip to content

Instantly share code, notes, and snippets.

@bbroke
bbroke / download_tic80_cartridges.py
Created December 19, 2024 15:37
Download all TIC-80 games from https://tic80.com/
import os
import requests
from bs4 import BeautifulSoup
BASE_URL = "https://tic80.com"
CATEGORY = 0 # "cat=0" are games, change for other stuff, see https://tic80.com/play?cat=0&sort=2
MAX_PAGES = 40 # change to maximum number of pages in selected CATEGORY
DOWNLOAD_DIR = "tic80_games"
def create_download_dir():
# required libraries
library(XML)
library(uuid)
library(stringr)
library(plyr)
library(reshape2)
library(ggplot2)
library(doParallel)
doParallel::registerDoParallel(cores = 4)
library(maps)
state division region
Connecticut New England Division Northeast Region
Maine New England Division Northeast Region
Massachusetts New England Division Northeast Region
New Hampshire New England Division Northeast Region
Rhode Island New England Division Northeast Region
Vermont New England Division Northeast Region
New Jersey Middle Atlantic Division Northeast Region
New York Middle Atlantic Division Northeast Region
Pennsylvania Middle Atlantic Division Northeast Region