ericchiang / pup

Parsing HTML at the command line
MIT License
8.1k stars 257 forks source link

Feature Request: Iterate over selected nodes and print out some data #61

Open baszero opened 8 years ago

baszero commented 8 years ago

Example HTML:

<h1 id="firstHeading" class="firstHeading" lang="en">
 <span dir="auto">
  Robots exclusion standard
 </span>
 <span dir="auto2">
  date: xyz
 </span>
</h1>

Now it would be great if pup could be used in a way:

ghost commented 7 years ago

you can achieve this using other tools: 1) Remove all the lines inside <> 2) Change new lines for commas