Example webpage: https://subwaystats.com/status-1-train-on-2017-11-27.
In the page source there's a variable called "data," which has two lists of data (labels and data) that will become my "columns" in the .csv.
<script>
...
var data = {
labels: ['12am', '00:05', '00:10', '00:15', '00:20', '00:25', ...],
...,
data: [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,...],
....}
</script>
How can I get these two lists into a .csv? Any help is appreciated as I'm very new to web scraping.