Sametinget API explorations
Incomplete scraping attempt
LANDING = "https://sametinget.kommunetv.no/archive"
import requests
from bs4 import BeautifulSoup
SEARCH_PAGE = "https://sametinget.kommunetv.no/api/search?noRetry=false&page=3&pageSize=12&type=Archive&hideResultTypes=true"
SAMPLE_API = "https://sametinget.kommunetv.no/api/streams?streamType=1&id=168"
sample_req = requests.get(SAMPLE_API)
sample_req.content
import json
sample_data = json.loads(sample_req.content)
[x for x in sample_data.keys()]
[x for x in sample_data['stream'].keys()]
sample_data['speakerEntries']