ericchiang / pup

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

The comma operator does not work with pup v0.4.0 #118

Closed sebma closed 5 years ago

sebma commented 5 years ago

Hi, According to your example at https://github.com/EricChiang/pup#--and- pup is supposed to print :

$ cat robots.html | pup 'title, h1 span[dir="auto"]'
<title>
 Robots exclusion standard - Wikipedia, the free encyclopedia
</title>
<span dir="auto">
 Robots exclusion standard
</span>

but pup v0.4.0 shows :

$ cat robots.html | pup 'title, h1 span[dir="auto"]'
<title>
 Robots exclusion standard - Wikipedia
</title>
sebma commented 5 years ago

My mistake, robots.html has changed since :

$ cat robots.html | pup 'h1 span[dir="auto"]'
$