XIDEL export extracted data (div) from multiple HTML files into new HTML files

278 views Asked by At

I would like to scrap a website of multi pages and extract a particular div before exporting it to html pages with just the div as content.

I am able to extract data from the content using Xidel with the following command

xidel http://someURl/ --extract //div[2]/div[2]/div -f "//a" -e //div[2]/div[2]/div

Is it possible to download the extracted data into a html file?

1

There are 1 answers

2
MatrixView On

add a parameter: --output-format=html