scrape.py - lotteph/tweedejaarsproject GitHub Wiki

panel_info

Scrapes information from the solar panel. Takes the begin and end date from the needed data and the sid and id of the website that needs to be scraped. Returns an list with the important information.

add_data

Adds the data scraped from the website to a panda. Takes the scraped energy data, panel information and a panda. Returns a panda.

retrieve_data

Scrapes energy data from the website. Takes a begin and end date, panel information, a panda, a boolean indicating if there is a second page with data, the id and the Sid of the website. Returns a panda.

main

Calls all the other functions. Takes the begin month and year, the end month and end year, the id and the sid of the website. Returns a panda containing all the needed data.