Skip to content

Dan-the-Mann/Webscraping-into-PlanetScale-DB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LCS Hobby

This project combines two of my previous projects together. scraper.js loops through each year/split (2013 - 2022, Spring & Summer) and instantiates a scraper object to grab game data from the LoL Wiki which then sends a request body to db.js which stores all data in a Planetscale database.

node db.js    // runs on localhost:5000
node scraper/scraper.js   // runs on localhost:4000

Navigate the browser to localhost:4000/Scrape to begin scraping. The scraper object only needs a url and an html string passed to it.

PlanetScale CLI

pscale auth login
pscale shell <DB_Name> <Branch>

Opens a shell where MySQL commands can be run from the terminal straight to your PlanetScale database.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published