Using google docs APIs, populate Wikipedia content on COVID-19 (A pandamic, causing worldwide lockdown)
Very well documented steps can be found here. As the steps on the page suggest please enable the APIs so that you can start using cloud services.
Follow the button links to gain access to Google documents APIs. Download the credentials.json to your work area where you will be creating your google client project.
Install Google's python client for cloud APIs.
pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
We are scrapping content from Wikipedia and hence we need this python package, otherwise its optional.
pip3 install wikipedia-api
The template i used can be found here.
By default, the project use my template but feel free to change the tamplate and respective code. To run the code:
python google-docs-example.py
As an example, if you would like to see the JSON dump of requests structure, please set 'DEBUG = 1'. Likewise you can dump requests as any stage in the document.