From e2f2779c3c1e3bc1f32477fb6f85337d14cf725e Mon Sep 17 00:00:00 2001 From: deekim Date: Tue, 10 Oct 2017 19:00:49 -0400 Subject: [PATCH] fixup! pup: add page --- pages/common/.pup.md.swp | Bin 0 -> 12288 bytes pages/common/pup.md | 16 ++++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 pages/common/.pup.md.swp diff --git a/pages/common/.pup.md.swp b/pages/common/.pup.md.swp new file mode 100644 index 0000000000000000000000000000000000000000..4427c795ae39b7ef81d7a4e12e5389576def3be1 GIT binary patch literal 12288 zcmeI2O=}b}7{^mDdZ~&pco5}rd+5d8tuG)53R;m?tSwjt@v_-Tx*MBGhD^3EtgGG> z^c(5TPvAvQ>L>66C{%p1J029e+a3%5z>iEO$@3(?naeO~&plpTqHB$-g3ECsKCXOy z@@ip6ET0iVN!M66dFmNk6c4KB?XhE0=Zh*}bJK_QvXGf>Myo=zkR4q%GoR<)HH%)+ z$koJH7ytt>uwMhy;>zVqb7|I0?E;-V@o2vRFdhbA00v+H24DaNU;qYS-~bzl#gur- z>pxWO;cQh;{a05_R4@PoFaQHE00S@p126ysFaQHE00RfmfaG88i_=1UV$%Qrzu*7A zjtTLT`NDi=-Z5{PF4JM|F!RiL<{Wc`Im~=ND#SPD1M{AF!@Op0Gq;%2%qiwK=i90B z{z$n|U;qYS00v+H24DaNU;qYS00#DIpfxI)jMVQNr}S2%8*@7t&~xHb)im4hE3?7P zXQg-j!E8&2I;{lbA}y>g-6vVny@$&Wt_#tc93$$j_-_npEv37(7JN>zt7*;HsDoCc z@Y?EJyI7KRDs`JcS=aFSZ|x?fG_L5yr*XT`H)<(GZBVWL?l8kBetVl_jKQ>fQPYOB zJv}Kb+n6zGmsm#aVfrp}tF2O$9da@szmR%8^VWyq(^w7Cm1{oaBq_+v(Z*P#CVonu zZ)R3Yr`1JnE0&qAlFnfS7M-Tb$P2$o^L(5>by?%|C{7_mX HTML parsing tool. +> Command line HTML parsing tool. -- Transform raw HTML file into a cleaned, indented, and colored format: +- Transform a raw HTML file into a cleaned, indented, and colored format: `cat {{index.html}} | pup --color` - Filter HTML by element tag name: -`cat {{index.html}} | pup '{{tag}}'` +`cat {{index.html}} | pup '{{div}}'` - Filter HTML by id: -`cat {{index.html}} | pup '{{tag#id}}'` +`cat {{index.html}} | pup '{{div#id}}'` - Filter HTML by attribute value: -`cat {{index.html}} | pup '{{tag[attribute="value"}}'` +`cat {{index.html}} | pup '{{input[type="text"}}'` -- Print all text from selected nodes and children: +- Print all text from the filtered HTML elements and their children: -`cat {{index.html}} | pup '{{tag}} text{}'` +`cat {{index.html}} | pup '{{div}} text{}'` - Print HTML as JSON: -`cat {{index.html}} | pup '{{tag}} json{}'` +`cat {{index.html}} | pup '{{div}} json{}'`