|
|
|
wizzodawg.blogspot.com/ Joined: 2/9/2007
Posts: 628
|
|
|
Well, thinking about it, there is a google search mechanism that allows you to search according to preferences. You can go to this site: news.google.com/advanced_news_search put in your search preferences, and then take the resulting url with the results, and get more items. I really think Google sets the number of items to 10 initially to reduce the load on their servers, and speed execution of the queries. IE and other newreaders would be able to cache or store the results based on some date/time pubDate logic.
Try putting this url as your news source url:
http://news.google.com/news?svnum=10&as_scoring=r&as_drrb=q&as_qdr=&as_mind=9&as_minm=3&as_maxd=8&as_maxm=4&q=hockey&ie=UTF-8&output=rss
You'll see in it, I'm asking google to give me results for q=hockey, mind=9 (minimum date 9) minm=3 (minimum month March) with maxd=8, and maxm=4, so it would retrieve items for the period 3/9/2007 through 4/8/2007. Of course, this is hard coded, but you could switch from using the news feeds rss module to the xml module if you are using a dnn v4.4.1 and above. The newer XML module allows you to setup parameters and pass them to a custom xsl that could handle creating a custom query into Google.
I can give you an example of that type of thing tomorrow, if you need help with it. Let me know what version of dnn you are using, and what XML version you have loaded. One caution, don't use xml v04.04.03, as it changes things a bit, disallowing script calls within xsl, which may limit your ability to do this type of query. I'd have to check on my test site, which static types of data are availble for use as parameters in the module. Anyway, more on it later, got to get to bed, early morning meeting at work, and no more time to chat about it.
However, I will follow up as soon as I can.
Cheers
|
|
|
|
| |
|
|
Joined: 2/1/2007
Posts: 72
|
|
|
iwonder wrote
Well, thinking about it, there is a google search mechanism that allows you to search according to preferences. You can go to this site: news.google.com/advanced_news_search put in your search preferences, and then take the resulting url with the results, and get more items. I really think Google sets the number of items to 10 initially to reduce the load on their servers, and speed execution of the queries. IE and other newreaders would be able to cache or store the results based on some date/time pubDate logic.
Try putting this url as your news source url:
http://news.google.com/news?svnum=10&as_scoring=r&as_drrb=q&as_qdr=&as_mind=9&as_minm=3&as_maxd=8&as_maxm=4&q=hockey&ie=UTF-8&output=rss
You'll see in it, I'm asking google to give me results for q=hockey, mind=9 (minimum date 9) minm=3 (minimum month March) with maxd=8, and maxm=4, so it would retrieve items for the period 3/9/2007 through 4/8/2007. Of course, this is hard coded, but you could switch from using the news feeds rss module to the xml module if you are using a dnn v4.4.1 and above. The newer XML module allows you to setup parameters and pass them to a custom xsl that could handle creating a custom query into Google.
I can give you an example of that type of thing tomorrow, if you need help with it. Let me know what version of dnn you are using, and what XML version you have loaded. One caution, don't use xml v04.04.03, as it changes things a bit, disallowing script calls within xsl, which may limit your ability to do this type of query. I'd have to check on my test site, which static types of data are availble for use as parameters in the module. Anyway, more on it later, got to get to bed, early morning meeting at work, and no more time to chat about it.
However, I will follow up as soon as I can.
Cheers
Thanks for your suggestions. I tried to that advance search (with preferences) as well as that url you provided. In both cases, although the webpage (and the ie7 news reader) displays more items, the dnn newsfeed will only display 10 items.
I am infact using dnn4.41 and the xml is 03.01.00 (although it tells me there is an upgrade available- but I have not upgraded yet
) and the newfeed is 03.01.01. So I tried that url in an xml/xsl module and the same thing- displays 10 items. Hopefully, when you have sometime, you can try it yourself and playing around with the xsl to get it to display more items. Let me know how you do it. Thanks for taking the time to answer my posts- I really do appreciate your help.
P.S. The reason why I so much want to make this google newsfeed work is because google basically provides me a way to combine many newsfeeds from various sources into one dnn newsfeed module... all arranged nicely by date. (I am no longer limited to just one source per dnn module.)
P.S. Btw, tomorrow I am going to download some other news feed readers (I only have ie7's new feed reader on my computer right now). I will check to see if these other readers can display more than 10 items using the same source url. I will let you know the results.
|
|
|
|
| |
|
|
wizzodawg.blogspot.com/ Joined: 2/9/2007
Posts: 628
|
|
|
Well, I did try that myself, and got the same results, 10 items. But you have to understand that this is not a limitation imposed by any DNN code in the Newsfeeds (RSS) module. If you examine the source code, you will see that DNN is merely fetching and translating the feed as supplied by the provider. In the documentation on Google, they say the default number of search items is 10. Although, this bit is confusing since, other doc on their database API indicate that you can use a max-items parameter to control the number of items, it doesn't work with their newsfeeds. The number of items returned for a newsfeed is not documented on their site, from what I see, so you have to dig pretty well to find the above info.
The reason why IE7 and other dedicated news readers may show more items is because their programming allows storing of the items, not because they are getting necessarily more items with each request. Although, that too may be a possibility if they specifically wrote code to interact with Google's API. All I can tell you is to contact Google about it, and let us know what you find out.
The DNN NewsFeeds (RSS) module is not a dedicated newsreader, the features supplied in the DNNv04.04.01, and below, offer basic fetch and xml/rss translation - nothing more, but in most cases it's enough. The module is undergoing a rewrite with more features being added. I don't have a beta version of it, but I'm sure others who do could relate more about it.
Sorry I could not be more help.
|
|
|
|
| |
|
|
Joined: 2/1/2007
Posts: 72
|
|
|
edshijie wrote
P.S. Btw, tomorrow I am going to download some other news feed readers (I only have ie7's new feed reader on my computer right now). I will check to see if these other readers can display more than 10 items using the same source url. I will let you know the results.
I just downloaded a RSS reader called "Active Web Reader" (found it at http://www.download.com/3120-20_4-0.html?tg=dl-20&qt=rss%20reader&tag=srch )
Just like IE7's RSS reader, I could use this Active Web Reader to view as many items as I want from the google feed.
When I set the google feed to display 20 , then when I copied that URL to the Activewebreader, it displays 20. When I set the google feed for 100, then when I copy that URL to the AvtiveWebREader, it displays 100.
|
|
|
|
| |
|
|
Joined: 2/1/2007
Posts: 72
|
|
|
iwonder wrote
Sorry I could not be more help.
That's okay. No big deal. I hope I didn't give the wrong impression I was complaining. I was simply thinking- since I can see 50 items with other rss news feeder, am I doing something wrong (or forgot to do something) when I wrote the xsl for my dnn module?
But like you said, other rss news feeders are doing extra "work behind the scenes" to display that 50 items, so that means I am not doing anything wrong. I will try to see if I can come up with a work around. Maybe contact google like you suggested. If I come up with something, I will come back and post my findings/solution. Thanks.
|
|
|
|
| |