|
|
|
@ -281,18 +281,23 @@ $ cat robots.html | pup 'div#p-namespaces a'
|
|
|
|
|
$ cat robots.html | pup 'div#p-namespaces a json{}'
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"accesskey": "c",
|
|
|
|
|
"href": "/wiki/Robots_exclusion_standard",
|
|
|
|
|
"attrs": {
|
|
|
|
|
"accesskey": "c",
|
|
|
|
|
"href": "/wiki/Robots_exclusion_standard",
|
|
|
|
|
"title": "View the content page [c]"
|
|
|
|
|
},
|
|
|
|
|
"tag": "a",
|
|
|
|
|
"text": "Article",
|
|
|
|
|
"title": "View the content page [c]"
|
|
|
|
|
"text": "Article"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"accesskey": "t",
|
|
|
|
|
"href": "/wiki/Talk:Robots_exclusion_standard",
|
|
|
|
|
"attrs": {
|
|
|
|
|
"accesskey": "t",
|
|
|
|
|
"href": "/wiki/Talk:Robots_exclusion_standard",
|
|
|
|
|
"rel": "discussion",
|
|
|
|
|
"title": "Discussion about the content page [t]"
|
|
|
|
|
},
|
|
|
|
|
"tag": "a",
|
|
|
|
|
"text": "Talk",
|
|
|
|
|
"title": "Discussion about the content page [t]"
|
|
|
|
|
"text": "Talk"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
```
|
|
|
|
@ -303,18 +308,23 @@ Use the `-i` / `--indent` flag to control the intent level.
|
|
|
|
|
$ cat robots.html | pup -i 4 'div#p-namespaces a json{}'
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"accesskey": "c",
|
|
|
|
|
"href": "/wiki/Robots_exclusion_standard",
|
|
|
|
|
"attrs": {
|
|
|
|
|
"accesskey": "c",
|
|
|
|
|
"href": "/wiki/Robots_exclusion_standard",
|
|
|
|
|
"title": "View the content page [c]"
|
|
|
|
|
},
|
|
|
|
|
"tag": "a",
|
|
|
|
|
"text": "Article",
|
|
|
|
|
"title": "View the content page [c]"
|
|
|
|
|
"text": "Article"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"accesskey": "t",
|
|
|
|
|
"href": "/wiki/Talk:Robots_exclusion_standard",
|
|
|
|
|
"attrs": {
|
|
|
|
|
"accesskey": "t",
|
|
|
|
|
"href": "/wiki/Talk:Robots_exclusion_standard",
|
|
|
|
|
"rel": "discussion",
|
|
|
|
|
"title": "Discussion about the content page [t]"
|
|
|
|
|
},
|
|
|
|
|
"tag": "a",
|
|
|
|
|
"text": "Talk",
|
|
|
|
|
"title": "Discussion about the content page [t]"
|
|
|
|
|
"text": "Talk"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
```
|
|
|
|
|