HTML table scraper for wikipedia or any other site.
Scrape tables from wikipedia or any webpage, returning in a nested array or object (default) format.
- options
url- Required url of the webpage to scrapeselector- Optional css selector, defaults to.wikitableformat- Optional format eitherobjectorarray.
// usage:consturl='https://en.wikipedia.org/wiki/List_of_modern_names_for_biblical_place_names';wikitable({ url,format: 'array'}).then(data=>console.log(data));/* data: [ [ [ 'Biblical name', 'Mentioned in', 'Present name', ... ], [ 'Adramyttium', 'Acts 27:2', 'Burhaniye', ... ], ... ] ]*/