From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11007 invoked by alias); 1 Nov 2013 02:53:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18083 Received: (qmail 4036 invoked from network); 1 Nov 2013 02:53:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=oOwB4AnYpocrFY5+pYU8+zreyCE4p/7Dehbq8sscYC0=; b=MIv+R4OVHVS/nKwxM4tcxcV61PkfRhLmiVxOooI4CHx1E+lATMV8M5RbMr9a8QTtNl vBwGojyGM7BM3atwoSY3SokELWj0u6P3B5e2eFD0eIw3o27+5IaEgkL6AAiu3rAiVPi8 DkE9yTzorqhbRXP9887O5mni1w6Cy8vas6gFoL4kwcadQ9R8x9Zx1izagGPmgILP6/Rj 970RaMYGOrjYSQyCu8txa0ig0DFP9VqSP9xuK2ivC0/D7lgYQgQ3RIUvJge93v3SsIhN Ql8bxtUYho22yG2wbFpSMmcbosmf8JsNxxSItTxTv8oJFDu5PZw7xuZnDNQKKUNrPq7X 6KWQ== X-Received: by 10.49.109.194 with SMTP id hu2mr1025623qeb.13.1383274379564; Thu, 31 Oct 2013 19:52:59 -0700 (PDT) MIME-Version: 1.0 From: TJ Luoma Date: Thu, 31 Oct 2013 22:52:19 -0400 Message-ID: Subject: How to parse JavaScript from Zsh? To: Zsh-Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Long story short=E2=80=A6 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 =C3=BCpgraded 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