lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Excellent stuff.

Liked both pup and gron, very useful


On Mon, Mar 22, 2021 at 9:30 PM Petite Abeille <petite.abeille@gmail.com> wrote:


> On Mar 22, 2021, at 15:39, Sudheer Hebbale <sudheerhebbale@gmail.com> wrote:
>
> Towards the goal mentioned in the email below, I have put efforts towards building a project, which will have 3 modules

Cool.

Tangentially related: curl + pup + gron [1][2][3].

# curl -s https://textprotocol.org/ | pup 'json{}' | gron | grep 'href = "" | head
json[0].children[0].children[0].children[18].href = "" href="https://textprotocol.org/" rel="noreferrer" target="_blank">https://textprotocol.org/";
json[0].children[0].children[0].children[19].href = ""> json[0].children[0].children[0].children[20].href = "" href="https://textprotocol.org/contact" rel="noreferrer" target="_blank">https://textprotocol.org/contact";
json[0].children[0].children[0].children[21].href = "" href="https://textprotocol.org/" rel="noreferrer" target="_blank">https://textprotocol.org/";
json[0].children[0].children[0].children[22].href = ""> json[0].children[0].children[0].children[23].href = ""> json[0].children[0].children[0].children[24].href = "" href="https://github.com/textprotocol/textprotocol.github.io/blob/main/LICENSE" rel="noreferrer" target="_blank">https://github.com/textprotocol/textprotocol.github.io/blob/main/LICENSE";
json[0].children[0].children[0].children[25].href = ""> json[0].children[0].children[0].children[26].href = "" href="https://textprotocol.org/contact" rel="noreferrer" target="_blank">https://textprotocol.org/contact";
json[0].children[0].children[0].children[27].href = "" href="https://webmention.io/textprotocol.org/xmlrpc" rel="noreferrer" target="_blank">https://webmention.io/textprotocol.org/xmlrpc";

±0¢

[1] https://curl.se
[2] https://github.com/ericchiang/pup
[3] https://github.com/tomnomnom/gron