homepage Welcome to WebmasterWorld Guest from 54.197.211.197
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google News Archive
Forum Library, Charter, Moderator: open

Google News Archive Forum

    
Format of snippet in Google API output?
Mohamed_E

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 16841 posted 5:14 pm on Sep 9, 2003 (gmt 0)

When I run a simple program (perl) to search for
google I get the following in the title and snippet fields:

Title: <b>Google</b>

snippet: <b>...</b> Advertise with Us - Business Solutions - Services & Tools - Jobs,<br> Press, & Help Ac2003 <b>Google</b> - Searching 3,307,998,701 web pages.

The snippet is all on one line with no line breaks.

Now I have no problem adding a function that will change the various > etc to > etc., but is this the expected output format?

The APIs_Reference.html file says nothing about having to convert entities to "normal" characters, and more to the point none of the examples in Google Hacks shows such a conversion.

I am running WinXP with a Cygwin environment, using the perl that comes with it: This is perl, v5.8.0 built for cygwin-multi-64int. I installed SOAP::Lite and its many prerequisites using perl -MCPAN -e 'install SOAP::Lite' which did not complain.

The obvious place to ask is the google.public.web-apis newsgroup, but it seems to be a "questions without answers" newsgroup :(

Any help would be much apprciated.

 

RBuzz

10+ Year Member



 
Msg#: 16841 posted 4:27 pm on Sep 14, 2003 (gmt 0)

What's your code look like? I'm wondering how you're getting this result.

killroy

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 16841 posted 4:34 pm on Sep 14, 2003 (gmt 0)

If the reply is suposed to be XML then all entities MUST be encoded to validate and comply to the XML standard.

SN

Mohamed_E

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 16841 posted 4:46 pm on Sep 14, 2003 (gmt 0)

I understand, but from the examples in the Google Hacks book I assumed that the strings were being decoded before being returned to the calling program. So I am asking what others have observed.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google News Archive
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved