Skip to content

linusrachlis/fringr2-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toronto Fringe 2025 performance data scraper

Scraper for show info and performance times on the Toronto Fringe Theatre Festival 2025 website. Used for https://github.com/linusrachlis/fringr2-fe.

Running

Have PHP >=7.

php scrape.php # Dumps everything to stdout (operational info and JSON output)
php scrape.php out.json # Gives operation info to stdout and JSON output to a file

Copy the contents of out.json and use it to replace the value of showsData in fringr2-fe/src/data/shows.ts.

Generating URLs list

  1. Visit https://fringetoronto.com/fringe/shows.
  2. Use the "More info" buttons on this page to generate a list of all show URLs. Open the Javascript console and run something like:
    console.log(Array.from(document.querySelectorAll(".more-link a")).map(e => e.href).join('\n'))
  3. Copy the output and use it to replace the contents of play_urls.txt.

About

Scraper for show info and performance times on the Toronto Fringe website. Used for linusrachlis/fringr2-fe

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages