Re: [racket] read WebPage

2013-06-12 Thread Matthias Felleisen
Here is an old script that reads stock prices, but it still runs. -- Matthias #lang racket (require net/url net/uri-codec) #; (require (lib "url.ss" "net") (lib "uri-codec.ss" "net") (lib "list.ss") (lib "contract.ss")) (current-alist-separator-mode 'amp) (define-

Re: [racket] read WebPage

2013-06-12 Thread Jens Axel Søgaard
Try the html-parsing library from PLaneT. #lang racket (require net/url (planet neil/html-parsing:2:0) (planet jim/sxml-match:1:1/sxml-match)) (html->xexp (get-pure-port (string->url "http://www.tijd.be/beurzen/Societe_Generale.360017048";))) Then take a look at sxml-match when you n

[racket] read WebPage

2013-06-12 Thread Frank Weytjens
Hi Racket users, I'm trying to extract some information from a webpage. First attempt is to read the complete page Later i will try to filter the StockPrice and Volume at a certain time The goal is to calculate what direction the StocPrice is moving in multiplied by the number of Stocks that chang