We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin: FeedGrab

Development and Programming

OdotJdot's avatar
OdotJdot
12 posts
15 years ago
OdotJdot's avatar OdotJdot

that didnt work for me either.

actually, i set the categories and the authors. but when i went to edit the entries, they were not set

what am i doing wrong here?

       
DIY's avatar
DIY
28 posts
15 years ago
DIY's avatar DIY
Notice: Trying to get property of non-object in /home/sonicnew/public_html/clickmusic/admin/plugins/pi.xmlgrab.php on line 605

Notice: Trying to get property of non-object in /home/sonicnew/public_html/clickmusic/admin/plugins/pi.xmlgrab.php on line 629

Notice: Trying to get property of non-object in /home/sonicnew/public_html/clickmusic/admin/plugins/pi.xmlgrab.php on line 645

Warning: Invalid argument supplied for foreach() in /home/sonicnew/public_html/clickmusic/admin/plugins/pi.xmlgrab.php on line 190

When trying to import data, I’m getting these errors. My XML file has been checked and is valid, and I created an example with just one entry in, just to check to make sure the file wasn’t too big.

I’m no PHP expert, so a quick Google is just confusing me even more - if someone could decipher this and tell me what to look for I’d be eternally grateful!

       
adro's avatar
adro
110 posts
15 years ago
adro's avatar adro

Just installed the plugin and I get this error as soon as I go into the Plugin screen under Admin –> Utilities. This is the error I’m getting:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sanction/public_html/sanctionsys/plugins/pi.feedgrab.php:3110) in /home/sanction/public_html/sanctionsys/extensions/ext.lg_htaccess_generator_ext.php on line 672

Looks like there is a conflict between FeedGrab and LG Htaccess Generator. Anyone know how I can fix this?

       
jbcobbs's avatar
jbcobbs
53 posts
15 years ago
jbcobbs's avatar jbcobbs

Im having the same problem as Lot 105 - Im using xmlgrab - any help would be appreciated.

       
mhulse's avatar
mhulse
329 posts
15 years ago
mhulse's avatar mhulse

I just wanted to say thanks for this plugin! I love it!!!!

Many many thanks!

Cheers, Micky

       
David Webb's avatar
David Webb
62 posts
15 years ago
David Webb's avatar David Webb

Hey Guys,

I’m trying to set up a website so I can update it from my trip to the USA in 4days time and I’m trying to incorporate my twitter feed.

I’ve set up feed grab with the following

{exp:feedgrab url="http://twitter.com/statuses/user_timeline/6956882.rss" 
                          weblog="3" 
                          title="title"
                          date="pubDate"
                          use="link|description" 
                          fields="twitter_link|twitter_words"  
                          unique="twitter_link" }

Which works, however I’ve got a couple of issues.

Ideally I’d like to place a couple of items into their own custom field, while stripping them from the description/twitter_words field..

The format of these items will always be the same.

I’d like to pull the lat and long into their own custom fields so that I can geolocate the tweet on a map. (twitter_geotwitt_lat and twitter_geotwit_long))

GeoTwitts geo:lat=51.491356 geo:lon=-0.299841

And if I post a twitpic I’d like to pull that out into its own custom field so I can include the image. (twitter_twitpic)

http://twitpic.com/etsfl

I’d also like to remove the User: at the start of each tweet. I know I can use something like “Trimmer” to do this on display but if some knows how to do it on import along with the multiple custom fields I’d love it.

I’m guessing we’d need to do some sort of php find and move but how to do that I have no idea.

(ps my work in progress website

My Road Trip

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
15 years ago
Andrew Weaver's avatar Andrew Weaver

Hi David,

Currently FeedGrab cannot do anything clever with the data it receives - it just stuffs it into a field.

To do the 3 things you mention above (pull out the lat and long, pull out the twitpic url, and remove the username) you’d probably need to pre-process the feed.

The pre-processing probably would not be that difficult, but the plugin cannot do it as it stands. Drop me an email if I can help.

Andrew

       
David Webb's avatar
David Webb
62 posts
15 years ago
David Webb's avatar David Webb

Thanks for the reply Andrew.

I’ll probably do the tweaking by hand for now. Running out of time before we leave on Wednesday morning/

Maybe I’ll see if I can sort the code when I get back.

Thanks again

       
Yuri's avatar
Yuri
273 posts
15 years ago
Yuri's avatar Yuri

I am trying to fetch RSS from Google news (http://news.google.ru/news?um=1&cf=all&ned=ru_ru&hl=ru&q=свадьба&cf=all&output=rss) As you can see, all tags there are converted to html entities. But after I import, there are no tags and no entities in my fields - all they are stripped away and I see the mess of text, links and ‘tag leftovers’. Could someone point me in the proper direction?

       
spyro's avatar
spyro
89 posts
15 years ago
spyro's avatar spyro

What would be the best way to automatically run Feedgrab at a regular interval?

       
Peter Hampus's avatar
Peter Hampus
30 posts
15 years ago
Peter Hampus's avatar Peter Hampus

I use crontab to automatically process the “feedgrab template”.

For instance: 0 * * * * curl -o –url http://some-url-to-feedgrab-template.com >/dev/null 2>&1

This will grab the rss feed every hour, and the >/dev/null 2>&1 part makes sure it does not leave any files on the server after curl has fetched the web page.

       
the_crimsonrooster's avatar
the_crimsonrooster
264 posts
15 years ago
the_crimsonrooster's avatar the_crimsonrooster

I got this plugin to work…sort of.. i followed the tut on Andrew’s site. I got the “go” file to work and the page shows me the feed info. See below:

Fetching: http://feeds.marketwatch.com/marketwatch/topstories/ Checking: Stocks to Watch: Stocks in focus for Friday Found new entry: Stocks to Watch: Stocks in focus for Friday

But the feed data does not download in my weblog. therefore, i’m not pulling anything from the weblog into the template that references the weblog.

any help would be appreciated.

thx!!

       
SSM's avatar
SSM
33 posts
15 years ago
SSM's avatar SSM

is this 2.0 compatible?

       
shinka's avatar
shinka
138 posts
15 years ago
shinka's avatar shinka

Hey, wonderful plugin. I got everything working except I needed to add an offset to the time to get the correct date to show up in my feed. But once I set up an offset, each time the script loaded (I set up a daily cron job), it duplicated each entry. Apparently the checking isn’t working if the “offset” parameter is used. This is my code:

{exp:feedgrab url="http://example.url" 
                          weblog="9" 
                          title="title"
                          date="pubDate"
                          offset="-21600"
                          use="link|description" 
                          fields="daily_url|daily_body"}
       
chronistin's avatar
chronistin
104 posts
15 years ago
chronistin's avatar chronistin

You can use a different field to check for duplicates. In my feeds, I use the link field, since a permalink is the most likely thing to be unique. Adding

unique="daily_url"

should do the trick.

       
First 15 16 17 18

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.