I am trying to get a timeseries from this website into python: http://www.boerse-frankfurt.de/en/etfs/db+x+trackers+msci+world+information+technology+trn+index+ucits+etf+LU0540980496/price+turnover+history/historical+data#page=1
I've gotten pretty far, but don't know how to get all the data and not just the first 50 rows which you can see on the page. To view them online, you have to click through the results at the bottom of the table. I would like to be able to specify a start and end date in python and get all the corresponding dates and prices in a list. Here is what I have so far:
from bs4 import BeautifulSoup
import requests
import lxml
import re
url = 'http://www.boerse-frankfurt.de/en/etfs/db+x+trackers+msci+world+information+technology+trn+index+ucits+etf+LU0540980496/price+turnover+history/historical+data'
soup = BeautifulSoup(requests.get(url).text)
dates = soup.findAll('td', class_='column-date')
dates = [re.sub('[\\nt\s]','',d.string) for d in dates]
prices = soup.findAll('td', class_='column-price')
prices = [re.sub('[\\nt\s]','',p.string) for p in prices]