This file contains hidden or 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 | |
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(): |
This file contains hidden or 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
# required libraries | |
library(XML) | |
library(uuid) | |
library(stringr) | |
library(plyr) | |
library(reshape2) | |
library(ggplot2) | |
library(doParallel) | |
doParallel::registerDoParallel(cores = 4) | |
library(maps) |
This file contains hidden or 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
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 |