I am scraping a site, which makes a call to a REST api with a bearer token.
If I open the request in Chrome developer tools, I can right-click the request in question and see the headers, including the authorization header with the bearer token.
How can I access this header value in Selenium, so I can get the bearer token value?
Note: It is a publicly available bearer token on a publicly available website, where a cinema website calls a provider to get their showtimes. It seems to expire every few hours.
PS. I am scraping movie showtimes for a local aggregator site, nothing nefarious (in my opinion). I could just scrape from the generated webpage, but consuming a REST-api is just a lot nicer and less error-prone.