Link to home
Start Free TrialLog in
Avatar of Doug Foster
Doug FosterFlag for United States of America

asked on

Google News search rss in page

I'm trying to make a list on a web page from a google news rss feed.  It's a list of my client "in the news", so stories on him as an expert on gold as a commodity.  

Something weird happened and in the last couple of weeks a long list turned into one item, and it seems to have something to do with the fact that it is now only searching the last 30 days.  I think google has everything else as an archive.  If I go into the google archive search with the same keywords I get tons of articles.

I have the feed information below.  For the life of me, I can't find any documentation on how to structure such a feed, and definitely nothing on this feed as an archive.  Is there a resource to help create the syntax?  Is there one for dates, or for an archive search?

This is on a Wordpress page so if there is a plugin for this, that would be great.  Maybe I should make a plugin....

<!--rss:rss_feed_url:=http://news.google.com/news?rls=com.microsoft:en-us&#038;ie=UTF-8&#038;oe=UTF-8&#038;startIndex=&#038;startPage=1&#038;um=1&#038;tab=wn&#038;q=%22Jeffrey+Nichols%22+gold+%22american+precious+metals+advisors%22&#038;nolr=1&#038;output=rss,num_items:=10,random:=false-->

Open in new window

Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

I tried this URL:
http://news.google.com/news?q=%22Jeffrey+Nichols%22+gold+%22american+precious+metals+advisors%22

It has a link to the RSS, but there is only one article in that RSS feed.

A regular Google search for this turned up nothing:
"Jeffrey+Nichols"+gold+"american+precious+metals+advisors"

So I opened up the terms a little bit and searched for this - got lots of hits...:
Jeffrey+Nichols+gold+american+precious+metals+advisors

Tightening it up a little bit, this got about 1,500 hits:
"Jeffrey+Nichols"+gold+american+precious+metals+advisors

I fed that to the Google News Archive for "all dates" and got about 100 results:
http://news.google.com/archivesearch?pz=1&ned=us&hl=en&num=10&q=%22Jeffrey%2BNichols%22%2Bgold%2Bamerican%2Bprecious%2Bmetals%2Badvisors&um=1

Curiously, when I tried Yahoo's service I only got one entry:
http://news.search.yahoo.com/news/rss?p=Jeffrey+Nichols+gold+american+precious+metals+advisors&ei=UTF-8&fl=0&x=wrt

And it looks like that is exactly the same article as the Google search uncovered.

I also tried this search:
http://www.google.com/search?hl=en&q=news+%22Jeffrey+Nichols%22+gold+american+precious+metals+advisors

More hits but still no hints about where to get an RSS feed that covered more than a month.

Since RSS is controlled by the publisher, it may not be easy to find the old RSS feeds, especially if Google just decided to stop carrying so much data in RSS.  But there may be hope going forward.  You can capture the RSS feed and save its data on your own server.  That would enable you to offer an RSS feed without direct reference to the Google feeds, except as required for attribution.  Over time you could rebuild the base of articles.

Not much help, I know, but it's all I could come up with right now.  Best regards, ~Ray
Avatar of Doug Foster

ASKER

Thanks Ray.

So what is the syntax to run a query to be listed on a page for google news archive?  

And, is there any documentation to help create the feed query?  Not the link as you did it but as I posted in my original question, so that it will list on the web page.

Thanks.

Doug
Hey, Doug.  Referring to the OP code snippet above, from where I sit it looks like an HTML comment.  Can you please tell me a little more about where it fits into the context of things?

Also, help me with this question - maybe an example...

So what is the syntax to run a query to be listed on a page for google news archive?  

My concern here is that we have been depending on Google to produce an RSS feed.  Since they are the publishers of the RSS feed, they can change it any time to anything they choose.  If their choice does not dovetail with our desires, it's simply unfortunate and there is not anything we can do.  That may not be what we want to hear, but that is the answer.  At this point I am trying to think of workarounds that might get you some of the older information.  You can write a PHP script to publish that information in the form of an RSS feed, if you can get the information.

Thanks, ~Ray
Hey Ray, I had a code snippet on my original post with the code.  I attached it again below.  The page is at http://nicholsongold.com/nichols-nuggets/.  
The client just wants a page with a listing where he was in the news.  He wants it to be automatic.  

<!--rss:rss_feed_url:=http://news.google.com/news?rls=com.microsoft:en-us&#038;ie=UTF-8&#038;oe=UTF-8&#038;startIndex=&#038;startPage=1&#038;um=1&#038;tab=wn&#038;q=%22Jeffrey+Nichols%22+gold+%22american+precious+metals+advisors%22&#038;nolr=1&#038;output=rss,num_items:=10,random:=false-->

Open in new window

Oh, I'm sorry Ray, I realize you were looking at the code.  Yes, it is a comment, but if you insert that into a page it gives a feed.  It's pretty cool, but I don't see documentation on how to tweak it (I don't remember where I found this method/syntax originally).  
And now I see that you can do a Google archive search, which give us a lot of articles, which is what I'm looking for, so I want the syntax to pull an rss feed from the archive.  
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the points - I hope it's working out well for you, ~Ray