We need to create scraper_wikipedia.py, using the provided rest-api from wikipedia. Specifically, we'll need to create a python function which will curl the following endpoint:
curl -X GET --header 'Accept: application/json; charset=utf-8' 'https://wikimedia.org/api/rest_v1/metrics/pageviews/top/en.wikipedia.org/all-access/2018/08/01'
This will return to us the top 1000 articles for the month of august in 2018.
We need to create
scraper_wikipedia.py
, using the provided rest-api from wikipedia. Specifically, we'll need to create a python function which willcurl
the following endpoint:curl -X GET --header 'Accept: application/json; charset=utf-8' 'https://wikimedia.org/api/rest_v1/metrics/pageviews/top/en.wikipedia.org/all-access/2018/08/01'
This will return to us the top 1000 articles for the month of august in 2018.