Created
November 9, 2025 13:45
-
-
Save shayh/8df0814f7e8f6cef157fb48dac9ce030 to your computer and use it in GitHub Desktop.
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
| const fs = require('fs/promises'); | |
| const filePath = 'lineup.tsv'; | |
| const transformDay = (day) => day === 'חמישי' ? '13/11/2025' : day === 'שישי' ? '14/11/2025' : '15/11/2025' | |
| async function getData() { | |
| const url = 'https://app.base44.com/api/apps/68e6282c3dbfb582588bf8d0/entities/Artist?sort=order&limit=500'; | |
| try { | |
| const response = await fetch(url); | |
| if (!response.ok) { | |
| throw new Error(`Response status: ${response.status}`); | |
| } | |
| const data = await response.json(); | |
| const res = data | |
| .map(r => `${transformDay(r.day)}\t${r.start_time.slice(0, 5)}\t${r.end_time.slice(0, 5)}\t${r.name}\t${r.stage}`) | |
| .join('\n'); | |
| await fs.writeFile(filePath, res); | |
| } catch (error) { | |
| console.error(error.message); | |
| } | |
| } | |
| getData(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment