https://github.com/yaanno/tvmaze-schedule-flat-data
Simple flat data processing with Deno using the TVMaze api
https://github.com/yaanno/tvmaze-schedule-flat-data
deno flat-data tvmaze-api
Last synced: 11 months ago
JSON representation
Simple flat data processing with Deno using the TVMaze api
- Host: GitHub
- URL: https://github.com/yaanno/tvmaze-schedule-flat-data
- Owner: yaanno
- Created: 2022-10-05T14:08:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T00:36:20.000Z (over 1 year ago)
- Last Synced: 2024-10-30T02:51:45.036Z (over 1 year ago)
- Topics: deno, flat-data, tvmaze-api
- Language: TypeScript
- Homepage:
- Size: 641 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fun with TVMaze & Octo/Flat & Deno
A very simple data fetching and processing example to harvest a daily (global) TV/Stream schedule from TVMaze.
## Why
Exercise :) But I'm actually using the processed file by fetching `tvmaze-schedule-processed.json` locally. And `flat` basically can grab anything ...
## How
- Set up a flat action on GitHub via `Flat.yml`
- I used a daily cron tab
- In the `process.ts` I simply go thru the ~10Mb json file distilling it down to the bare essentials
- An other example in `process.ts` is a Genre->ItemId catalog processing
## Used
- [Octo Flat](https://github.com/githubocto/flat)
- [Deno](https://github.com/denoland/deno)
- [Json2Ts](http://www.json2ts.com/)