a first (incomplete) version of the data scraping code