[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: salutations and web scraping
From: |
Andy Wingo |
Subject: |
Re: salutations and web scraping |
Date: |
Tue, 24 Jan 2012 14:07:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Tue 24 Jan 2012 13:47, Catonano <address@hidden> writes:
> I tried with www.friendfeed.com and I got back what follows:
>
> $11 = "<html>\r
> <head><title>301 Moved Permanently</title></head>\r
> <body bgcolor=\"white\">\r
> <center><h1>301 Moved Permanently</h1></center>\r
> <hr><center>nginx/0.6.31</center>\r
> </body>\r
> </html>\r
> "
I suspect here in $10 you got a response with the response-code of 301.
It's a redirect. Guile's HTTP client (unlike Firefox's) doesn't
automatically handle redirects for you; you need to grub around for
where it wants to send you.
In this case, try checking the response-code, and if it's a redirect
code, then look at the response-location. See response-location in the
manual.
Cheers,
Andy
--
http://wingolog.org/
- Re: salutations and web scraping, Andy Wingo, 2012/01/10
- Re: salutations and web scraping, Catonano, 2012/01/16
- Re: salutations and web scraping, Catonano, 2012/01/24
- Re: salutations and web scraping,
Andy Wingo <=
- Re: salutations and web scraping, Catonano, 2012/01/24
- Re: salutations and web scraping, Catonano, 2012/01/24
- Re: salutations and web scraping, Daniel Hartwig, 2012/01/24
- Re: salutations and web scraping, Catonano, 2012/01/24
- Re: salutations and web scraping, Andy Wingo, 2012/01/25
- Re: salutations and web scraping, Catonano, 2012/01/25
- Re: salutations and web scraping, Catonano, 2012/01/27
- Re: salutations and web scraping, Andy Wingo, 2012/01/25
- Re: salutations and web scraping, Catonano, 2012/01/29