Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to parse JavaScript from Zsh?
- X-seq: zsh-users 18086
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: Thiago Padilha <tpadilha84@xxxxxxxxx>
- Subject: Re: How to parse JavaScript from Zsh?
- Date: Fri, 1 Nov 2013 01:58:47 -0400
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=A0rOohRL1BsR+9BQmHSInkLOvhh0r/GloRyDyyUQeCY=; b=aNktjPm32xIEHjK9qGDmP7blQDQ/WlLHR46GzHb1FkVNV8b3TDJSc1Brxwi/td3427 9zMhbNRWmN1+pa6BQsEgB3xkmCPHYBd8etSZAWgR01birDcEmSbEMqf8VmwF+VymraBg Bn/Ux+qK2BYVY5k0TQka1ldBAWEThHPPjpvlhxq/G55NcJEGMG4PLDi8ABNs6CdFzLt1 MybLYhTfRZSpo5XivyxDzezLezA5iIKlCmYkmHFI2xxiautWh/l6qZEX02F+wZuPSkcH tAcaKUGz++Ccy0QnPzmlECoJCCGuTL+opFxzjmGVc4DC8hjBS+s30gmpAVGQgYpb9Si2 HZXg==
- In-reply-to: <CAAq2Xdq8oNg6TtUgG3c3j3cJn2OrBS1ngLWP=YjL4XyR6h8mYw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHuPF=8DLrNt3yK+p5zmRfBirsHd_=sod8aBCVEK=jSOtQ@mail.gmail.com> <CAAq2Xdq8oNg6TtUgG3c3j3cJn2OrBS1ngLWP=YjL4XyR6h8mYw@mail.gmail.com>
On Thu, Oct 31, 2013 at 10:59 PM, Thiago Padilha <tpadilha84@xxxxxxxxx> wrote:
> Perhaps they are sending just JSON and you mistake with javascript? If its
> just json you can try this https://github.com/micha/jsawk it targets bash
> but should work with zsh.
Well, this sent me back looking more closely at it… yes, it was
javascript… but the good news is that when I started poking around I
found that the information I wanted was being pulled (via JS) from a
regular HTML page.
So now I'm just parsing that using curl, sed, and tr.
(You can even see it at https://gist.github.com/tjluoma/7260924 if you
want, but I warn you: it's ugly. But it works.)
Thanks!
TjL
Messages sorted by:
Reverse Date,
Date,
Thread,
Author