6 of 11
6
Plugin: FeedGrab
Posted: 18 June 2007 01:50 PM   [ Ignore ]   [ # 91 ]  
Lab Assistant
RankRank
Total Posts:  165
Joined  12-21-2005

The unique=“title,date” parameter is actually the default behaviour. Possibly the feed’s title or timestamp changes and you get duplicates because of that.

I tend to find that a lot of RSS feeds have a unique field to check on, often called something like guid. I set up a custom field (called, say, feed_guid) and import the feed’s guid into it and use the parameter unique=“feed_guid”.

That might help…

 Signature 

Andrew Weaver — brandnewbox.co.uk


Member of EE Professional Network · More plugins, extensions and modules · Documentation

Profile
 
 
Posted: 19 June 2007 08:59 PM   [ Ignore ]   [ # 92 ]  
Summer Student
Total Posts:  12
Joined  05-10-2007

Thanks Andrew, I did see your documentation on GUIDs. Was hoping the “title,date” stuff would work and I did explicitly invoke that parameter after my last post. It’s off to visit GUIDs then! smile

Profile
 
 
Posted: 23 June 2007 02:40 PM   [ Ignore ]   [ # 93 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  768
Joined  03-16-2002

I ran into duplicates as well when checking titles - seems it happens if the original title is too long and therefore is truncated by the plugin.

-Markus

Profile
 
 
Posted: 24 June 2007 11:53 PM   [ Ignore ]   [ # 94 ]  
Summer Student
Total Posts:  12
Joined  05-10-2007

Thanks ms, that is good to know. I will take it as another vote for using the GUID field. I sure hope the feeds I’m using have that functionality. :)

Profile
 
 
Posted: 25 June 2007 10:00 PM   [ Ignore ]   [ # 95 ]  
Lab Assistant
RankRank
Total Posts:  149
Joined  04-09-2007

EDIT: Nevermind, I fixed it (Forgot I changed my default weblog field group)

Profile
 
 
Posted: 11 July 2007 11:27 PM   [ Ignore ]   [ # 96 ]  
Grad Student
Avatar
Rank
Total Posts:  55
Joined  05-05-2007

Hey,

I’m also wondering about the offset parameter. My Flickr feed is 20 hours into the future.

Profile
 
 
Posted: 14 August 2007 05:25 PM   [ Ignore ]   [ # 97 ]  
Grad Student
Rank
Total Posts:  95
Joined  08-14-2003

Thanks for the plugin. I’ve been using it for a few weeks and it works very well. One feature request, though, could you add the ability to automatically update the last_entry_date in exp_weblogs? Thanks.

Profile
 
 
Posted: 14 August 2007 07:53 PM   [ Ignore ]   [ # 98 ]  
Grad Student
Avatar
Rank
Total Posts:  47
Joined  05-14-2004

Andrew, your plugin rocks… but add me to the list of people who can’t get the “offset” parameter to work.  My Twitter posts are two hours earlier than they should be, so I’ve tried offset=“2”, offset=”-2” and offset=”+2”—nothing seemed to happen for any of those. How should I be formatting this instead?

Profile
 
 
Posted: 16 August 2007 09:54 PM   [ Ignore ]   [ # 99 ]  
Lab Assistant
RankRank
Total Posts:  149
Joined  04-09-2007

Two questions:

1. Is the offset parameter in minutes or hours? I’m having odd results, hard to explain, but it jumps a whole day even though I’ve only changed it by two hours or so, it seems to ignore the day of the month. Can it do negative time as wel?

2. All of a sudden i am getting this error when my feedgrab page runs.. it just started happening for no reason (that i can tell, on my end)

Fetching: http://www.mysite.com/boards/news.xml

Warning: MagpieRSS: Failed to fetch http://www.mysite.com/boards/news.xml (HTTP Error: connection failed (11) in /home/usr/public_html/dir/system/plugins/pi.feedgrab.php on line 1784

Any figure that sucker out? :\

Profile
 
 
Posted: 27 August 2007 12:53 PM   [ Ignore ]   [ # 100 ]  
Lab Assistant
RankRank
Total Posts:  149
Joined  04-09-2007

Solved:

put an invalid value in the date=”” parameter, such as title or something else. I then used the offset parameter to adjust the time zones of the feeds to match my servers time zone (for my case, i have 7 feeds i want to all be on the servers time zone)

I still have the above error and have looked into it on my side. We had our php updated by thre are no settings that should be affecting this particular feed, so perhaps its on the other sites end.

Profile
 
 
Posted: 13 September 2007 09:21 AM   [ Ignore ]   [ # 101 ]  
Grad Student
Avatar
Rank
Total Posts:  40
Joined  04-27-2007

Briggs, any chance you could post some of your code? I’m still having trouble with timestamps on FeedGrab’d data, and I can’t get the offset parameter to work at all.

Or Andrew, are you there? smile

 Signature 

Ethan is a Senior Designer at Airbag Industries, LLC., and wants to be an unstoppable robot ninja when he grows up.

Beep.

Profile
 
 
Posted: 13 September 2007 09:59 AM   [ Ignore ]   [ # 102 ]  
Grad Student
Avatar
Rank
Total Posts:  47
Joined  05-14-2004

Regarding offset, the code that ended up working for me was

offset="-18000"

I had other problems, but at least that was working.  wink

Profile
 
 
Posted: 13 September 2007 10:00 AM   [ Ignore ]   [ # 103 ]  
Grad Student
Avatar
Rank
Total Posts:  40
Joined  04-27-2007

Wow. So it’s in seconds?

 Signature 

Ethan is a Senior Designer at Airbag Industries, LLC., and wants to be an unstoppable robot ninja when he grows up.

Beep.

Profile
 
 
Posted: 13 September 2007 10:07 AM   [ Ignore ]   [ # 104 ]  
Grad Student
Avatar
Rank
Total Posts:  47
Joined  05-14-2004

I know the feeling ‘cuz I was the same way, “d’oh!!”  I only use HH:MM in my templates so that’s why nothing was happening when I put “-2” or whatever.

Profile
 
 
Posted: 13 September 2007 10:25 AM   [ Ignore ]   [ # 105 ]  
Lab Assistant
RankRank
Total Posts:  149
Joined  04-09-2007

In order for me to get all entries to have entry dates that were all in the same time zone (my servers time zone), this is what 1 of my “grabs” looks like. There are actually 7 of them in this page.

{exp:feedgrab url="http://www.mysite.com/boards/news.xml"
weblog="9"
category="8"
title="title" <----- Invalid value makes FeedGrab insert a default time
date
="title"
offset="-21620" <-------- modifies the entry date in seconds so it matches my servers time
use="link|description"
fields="feed_url|feed_desc"
unique="feed_url"}

Also I should mention that I had to play around with the time settings in EE quite a lot. ACross the board I made sure that the time settings were always CDT and always the time zone of my server, even if you are China. Cookies have localized time, but when they are used in a page they are changed to my CDT time (I’m new with cookies, maybe that’s default behaviour). I’m pretty novice in php so I wanted to make sure everything was in the same time so ic oudl play with cookies and date times of entries.

Profile
 
 
Posted: 12 October 2007 09:44 AM   [ Ignore ]   [ # 106 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  779
Joined  12-01-2002

I’m new to using FeedGrab. Though, I did skim through all six pages of forum comments, I couldn’t find anything that address two questions I have:

(1) Is it possible to declare ‘source’ either to grab it from the feed or hand code it into the {exp:feedgrab} data?
I’m looking to pull data from multiple sources, and want to make sure that the source is properly attributed on my site.

(2) Can other plugins be used with the FeedGrab plugin?
Mostly I’m interested in stripping HTML, and limited words or characters.  For example, one source that we are pulling data from allows full HTML, including style sheet overrides. Since we want the display to be very specific size and format, this isn’t great. I know I can clean it up, specifically on display, with the plugin, I’m just wondering if it could be cleaned before going into the system.

Profile
 
 
Posted: 12 October 2007 09:53 AM   [ Ignore ]   [ # 107 ]  
Lab Assistant
RankRank
Total Posts:  149
Joined  04-09-2007

You can use other plugins like html strip and what not, but it does not work perfectly, or I have not spent enough time with it yet. Sometimes i get weird character codes. But you can certainly get somewhere with it.

Profile
 
 
Posted: 12 October 2007 10:24 AM   [ Ignore ]   [ # 108 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  779
Joined  12-01-2002

Yeah, I’ve notice some strange character codes, when I use the plugin on output, but I haven’t tried on input yet. I assume you would wrap it around the source field like:

{exp:feedgrab url="http://www.mysite.com/news.xml"
weblog="1"
title="title"
date="date"
use="link|{exp:html_strip}description{/exp:html_strip}"
fields="feed_url|feed_desc"
unique="feed_url"}

Profile
 
 
   
6 of 11
6
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66460 Total Logged-in Users: 66
Total Topics: 84846 Total Anonymous Users: 22
Total Replies: 455290 Total Guests: 173
Total Posts: 540136    
Members ( View Memberlist )