Data Scraping from Wikipedia Website

I have to extract Refrece data from Wikipedia but with some conditions, please check the conditions below.

  1. Navigate to the Wikipedia page on Robotic Process Automation: Robotic process automation - Wikipedia
  2. Extract Reference data from the page and Export the data to a spreadsheet.
    a. Each line in the spreadsheet should represent one reference.
    b. The columns contain the metadata from the extracted data.

Please give the solution how can I solve?

As the structure is not consistent it might be better to use find children and then postprocess the child more in detail

Another option could be to use the Wikipedia API