put(x)
method that feeds it a number and a get()
method returning the mean value of the numbers passed so far.append(o)
method that takes an object like the ones above (i.e. ones that have a put
method to process data and a get
method to retrieve a result). It should itself have a put(x)
method, which will pass the x
on to all the objects o
passed to it via append
and a get
method which will return a list containing the results of the get
calls of all the contained objects.You can refer to w3's HTML tutorial for reference.
beautifulsoup
python package to load your page. Write code to navigate it, extracting all the elements mentioned above.robots.txt
to inform yourself about its rules concerning scraping. Using the scrapy
python package together with beautifulsoup
, write a spider that navigates through a small number of pages on that site, extracting relevant information and saving it to a .csv
file.