equal
deleted
inserted
replaced
|
1 #!/bin/bash |
|
2 |
|
3 get_atom() { |
|
4 wget --quiet --output-document - https://blog.frantovo.cz/agregace/c/?p=10 |
|
5 # wget --quiet --output-document - https://blog.frantovo.cz/agregace/k/ |
|
6 # cat atom.xml |
|
7 } |
|
8 |
|
9 get_atom \ |
|
10 | relpipe-in-xmltable \ |
|
11 --namespace "a" "http://www.w3.org/2005/Atom" \ |
|
12 --relation "/a:feed/a:title" --name-is-xpath \ |
|
13 --records "//a:entry" \ |
|
14 --attribute "published" string "a:published" \ |
|
15 --attribute "title" string "a:title" \ |
|
16 --attribute "url" string "a:link/@href" \ |
|
17 --relation "metadata" \ |
|
18 --records "." \ |
|
19 --attribute "id" string "a:id" \ |
|
20 --attribute "subtitle" string "a:subtitle" \ |
|
21 | relpipe-out-tabular |