Dark theme

Matplotlib


In this section we'll scrape some web data and use it to initialise our model.


The page we're going to scrape is relatively basic. You can find it here: data.html.

Have a look at the source code for the file. You can do this by:

Firefox; Chome; IE; Opera right-click page, and select View Page Source; View Source; Page Source.
Edge: Push F12 to open the developers' tools, and look at the DOM explorer.
Safari: details.

Given the page's structure, tags, classes, and ids, can you work out from the lecture how to download and print the y and x data? Do this at the top of your code.

[NB: just for interest, here's the code used to generate the page: data.py.]


  1. GUI
  2. This page
  3. Initializing the model <-- next