|
[Date Index]
[Thread Index]
[Author Index]
Re: Importing Google Result Page into Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg114636] Re: Importing Google Result Page into Mathematica
- From: Brian Holland <brian.d.holland at gmail.com>
- Date: Sat, 11 Dec 2010 01:53:45 -0500 (EST)
To get the HTML source you can use type "text".
Something like this may get you further down your road:
s = Import["http://www.google.com/search?q=Murta", "text"];
(*Put different bits onto different strings if you like:*)
s = StringSplit[s, ">" ~~ Whitespace ... ~~ "<"]; (*trim some junk*)
(*Put >< signs back in*)
s[[;; -2]] = (# <> ">") & /@ s[[;; -2]];
s[[2 ;;]] = ("<" <> #) & /@ s[[2 ;;]];
TableForm[s, TableHeadings -> Automatic] (*Have a look*)
On Fri, Dec 10, 2010 at 2:27 AM, Murta <rodrigomurtax at gmail.com> wrote:
> Hi All
>
> I I'm trying to import the google result page using a command like:
> Import["http://www.google.com/search?q=teste"]
> But the result isn't the page that I see in the browser.. (with
> hyperlinks
> and so one)
> If I try to use "Source", "Data" or "FullData" like:
> Import["http://www.google.com/search?q=teste", "Source"]
> It doesn't work either.
> Someone has any idea of how can I do that?
>
> tks
> Murta
>
>
Prev by Date:
non working CUDA x86_64 with Home Edition x86
Next by Date:
Re: Help me find a probability distribution
Previous by thread:
Re: Importing Google Result Page into Mathematica
Next by thread:
Re: Importing Google Result Page into Mathematica
|