Skip to content

Instantly share code, notes, and snippets.

View eapapp's full-sized avatar

Eszter Agnes Papp eapapp

View GitHub Profile
@eapapp
eapapp / psapifetch_dax18.py
Last active August 2, 2023 12:36
Download the latest dax18 podcast(s)
import requests as rq
import os.path as pt
import time
import re
API_URL = 'https://psapi.nrk.no/radio/catalog/podcast/dagsnytt_atten'
MF_URL = 'https://psapi.nrk.no/playback/manifest/podcast'
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();