https://github.com/linusrachlis/fringr2-scraper
Scraper for show info and performance times on the Toronto Fringe website. Used for linusrachlis/fringr2-fe
https://github.com/linusrachlis/fringr2-scraper
theater theatre toronto website-scraper
Last synced: 5 months ago
JSON representation
Scraper for show info and performance times on the Toronto Fringe website. Used for linusrachlis/fringr2-fe
- Host: GitHub
- URL: https://github.com/linusrachlis/fringr2-scraper
- Owner: linusrachlis
- Created: 2019-06-23T01:36:46.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2025-07-06T16:39:16.000Z (12 months ago)
- Last Synced: 2025-07-06T17:42:08.709Z (12 months ago)
- Topics: theater, theatre, toronto, website-scraper
- Language: PHP
- Homepage: https://fringr.rachlis.net
- Size: 14.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Toronto Fringe 2025 performance data scraper
Scraper for show info and performance times on the [Toronto Fringe Theatre
Festival 2025 website](https://fringetoronto.com/fringe/shows). Used for
https://github.com/linusrachlis/fringr2-fe.
## Running
```bash
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:
```js
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`.