zsh-users
 help / color / mirror / code / Atom feed
From: Abhijeet Rastogi <abhijeet.1989@gmail.com>
To: TJ Luoma <luomat@gmail.com>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: How to parse JavaScript from Zsh?
Date: Fri, 1 Nov 2013 08:34:43 +0530	[thread overview]
Message-ID: <CACXxYfzQ_nrh-OKUeVq_ADvDkS_w7QqJ+82gyfd2sN0GmHEOSQ@mail.gmail.com> (raw)
In-Reply-To: <CADjGqHuPF=8DLrNt3yK+p5zmRfBirsHd_=sod8aBCVEK=jSOtQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1123 bytes --]

You should perhaps try to sniff the GET/POST request that's being done via
Ajax and get to curl that URL.

- Sent from my Galaxy Note 3
On 1 Nov 2013 08:26, "TJ Luoma" <luomat@gmail.com> wrote:

> Long story short… my home network is satellite Internet. It has a
> 20gb/month quota (not a typo). I used to be able to parse the output
> of http://192.168.0.1 using `lynx` but they üpgraded their system and
> now http://192.168.0.1 uses JavaScript to deliver the information.
>
> I can't figure out how to parse JavaScript from a Zsh script.
>
> Ok, I admit that this is skirting on the edge of Zsh here, but I've
> been googling for a couple hours and don't seem to be finding anything
> close to a solution. Maybe just haven't found the right keywords, but
> I'm getting a ton of unrelated crap.
>
> I'm guessing there's some tool out there like `lynx` or `wget` or
> `curl` which can parse JavaScript from the command line, but I can't
> find whatever it is.
>
> So I'm hoping maybe someone here has already reached the top of this
> mountain and can point me in the right direction.
>
> TjL
>

      parent reply	other threads:[~2013-11-01  3:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-01  2:52 TJ Luoma
2013-11-01  2:59 ` Thiago Padilha
2013-11-01  5:58   ` TJ Luoma
2013-11-01  3:04 ` Abhijeet Rastogi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACXxYfzQ_nrh-OKUeVq_ADvDkS_w7QqJ+82gyfd2sN0GmHEOSQ@mail.gmail.com \
    --to=abhijeet.1989@gmail.com \
    --cc=luomat@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).