aaronsw / html2text

Convert HTML to Markdown-formatted text.
http://www.aaronsw.com/2002/html2text/
GNU General Public License v3.0
2.58k stars 410 forks source link

request: option to skip portions of the body #61

Open eadmaster opened 11 years ago

eadmaster commented 11 years ago

selected using the "class" or "id" attribute:

 html2text --ignore-id="mw-head" --ignore-class="printfooter" "http://en.wikiquote.org/wiki/Special:Random"
leesei commented 11 years ago

I would like to see a similar feature which only view specified items:

html2text --filter-id="External_links" --filter-class="thumb tright" "http://en.wikiquote.org/wiki/Special:Random"