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
1
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
1
  • Home
  • Forums

Plugin: FeedGrab

Development and Programming

Dabbledoo's avatar
Dabbledoo
172 posts
16 years ago
Dabbledoo's avatar Dabbledoo

Andrew -

I actually updated my version of this plugin so the “unique” parameter would support weblog_id. As I mentioned a while back, sometimes we need to be able to pull posts into more than 1 blog at a time. Its a very straight-forward update, but if you want me to send you the code, let me know.

Thanks,

Doug

       
Tammo's avatar
Tammo
59 posts
16 years ago
Tammo's avatar Tammo

Hi,

Just tried to get the FeedGrab v0.7.6 with EE 1.6.0 going but run into the following error:

Fatal error: Call to undefined function: mb_convert_encoding() in /home/hospital/public_html/hospisys/plugins/pi.feedgrab.php on line 185

I saw that Travis had te same issue earlier in this post and that Justin solved it by modifying their copy of the plugin with:

if (function_exists('mb_convert_encoding'))
{
  $encoded_title = mb_convert_encoding($this->post[ "title" ], strtoupper('UTF-8'), $source_encoding );
}
elseif(function_exists('iconv') AND ($iconvstr = @iconv($source_encoding, 'UTF-8', $this->post["title"])) !== FALSE)
{
  $encoded_title = $iconvstr;
}
else
{
  $encoded_title = utf8_encode($this->post["title"]);
}

I tried this and now I got other errors returned:

Notice: Undefined index: id in /home/hospital/public_html/hospisys/plugins/pi.feedgrab.php on line 285 Notice: Undefined index: id in /home/hospital/public_html/hospisys/plugins/pi.feedgrab.php on line 286 Notice: Undefined index: format in /home/hospital/public_html/hospisys/plugins/pi.feedgrab.php on line 286 MySQL ERROR: Error Number: 1054 Description: Unknown column ‘field_id_’ in ‘field list’

The first entry has been entered into my weblog but I can’t open it to see what data is imported

Surely the plugin works as it does for most so there should be no modifying the plugin necessary and it is probably something else. Hopefully somebody can help me out.

Cheers, Tammo

       
Tammo's avatar
Tammo
59 posts
16 years ago
Tammo's avatar Tammo

uhhmm..solved it..just a typo in the fields name I looked over ten times, works great now!

       
allgood2's avatar
allgood2
427 posts
16 years ago
allgood2's avatar allgood2

I’m trying to use FeedGrab with a feed that requires authentication. It’s basic auth, and the feed can use https so I figured I could go old school https://username:password@website ad this works if I place the url directly in the web browser, but not in FeedGrab. This gets the following errors:

(HTTP Response: HTTP/1.1 401 Unauthorized ) in /path/to/plugin/plugins/pi.feedgrab.php on line 1794

and

Notice: Trying to get property of non-object in /path/to/plugin/plugins/pi.feedgrab.php on line 159

Is there a way to get FeedGrab or XMLGrab to work with a source that requires authentication?

       
chabbs's avatar
chabbs
12 posts
16 years ago
chabbs's avatar chabbs

Does RSS enclosure work with feedgrab?

This plugin works really well and I’ve been enjoying the automation. Recently I discovered the company that provides articles to my site also provides images. The image link can be found in “enclosure”. This is what it looks like <enclosure url=”http://site.com/media/0/176313.jpg” length= “30210” type=”image/jpeg”>. I noticed that the enclosure tag doesn’t using a closing tag and I’m wondering if feedgrab is looking for content that’s in between two tags.

Has anyone used RSS enclosures successfully with feedgrab?

       
Remco van den Heuvel's avatar
Remco van den Heuvel
15 posts
16 years ago
Remco van den Heuvel's avatar Remco van den Heuvel
Does RSS enclosure work with feedgrab? This plugin works really well and I’ve been enjoying the automation. Recently I discovered the company that provides articles to my site also provides images. The image link can be found in “enclosure”. This is what it looks like <enclosure url=”http://site.com/media/0/176313.jpg” length= “30210” type=”image/jpeg”>. I noticed that the enclosure tag doesn’t using a closing tag and I’m wondering if feedgrab is looking for content that’s in between two tags. Has anyone used RSS enclosures successfully with feedgrab?

Yep it works with an enclosure

If you have an RSS with <enclosure url=”http://myurl.com/embed/16501.jpg” length=”4543” type=”image/jpg”> you can grab the values inside the enclosure with enclosure@url

Like:

use=”link|description|enclosure@url|category” fields=”url_video|body|Image_vid|tag_import”

Hope this helps

       
Linda A's avatar
Linda A
647 posts
16 years ago
Linda A's avatar Linda A

Could FeedGrab be used instead of one of those abandoned Amazon plugins/modules to help pull in data for a book review site? As in, you feed the plugin the ISBN from a custom field, then it fetches all the data about the book that you want.

       
allgood2's avatar
allgood2
427 posts
16 years ago
allgood2's avatar allgood2

I believe you need to use the Amazon API for that. FeedGrab grabs RSS, Aton, RDF feeds, meaning the data already exists in a collected format. Amazon offers RSS feeds for bestsellers, and a few other things; but what you are looking for is away to query the Amazon DB, the best method for that is to use the Amazon API.

       
Linda A's avatar
Linda A
647 posts
16 years ago
Linda A's avatar Linda A

Yeah, unfortunately all the plugins for that are dead :(

I think Amazon also offers the data via … REST? Isn’t that RSS-like?

       
allgood2's avatar
allgood2
427 posts
16 years ago
allgood2's avatar allgood2

Amazon’s API uses REST and SOAP or REST with SOAP, I don’t really understand the differences or overlap between them. But they aren’t really the same thing as RSS. I think the primary difference is with RSS, you are accepting the data that is provided. So Amazon gives you a Best Seller list, or a blog gives you the 10 most recent posts, etc. With REST or SOAP you tell the system what you want, so basically you query the system—I want recommendations for the Book that matches ASIN==##########. The return format can be similar to RSS, but there’s a query involved, as well as the passing of usage keys, etc. Whereas FeedGrab grabs public feeds. I haven’t upgraded, but I’ve never gotten it to work with a secure feed.

       
misc's avatar
misc
54 posts
16 years ago
misc's avatar misc

Sorry, but I am not able to find to latest version for download (in this thread, on brandnewbox or in plugin database).

Thanks for your help. MSIC

       
Linda A's avatar
Linda A
647 posts
16 years ago
Linda A's avatar Linda A

Ok, thank you for explaining. 😊

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
16 years ago
Andrew Weaver's avatar Andrew Weaver
Sorry, but I am not able to find to latest version for download (in this thread, on brandnewbox or in plugin database).

Sorry. The link should be back now on http://brandnewbox.co.uk/products/details/feedgrab/

Andrew

       
Tammo's avatar
Tammo
59 posts
16 years ago
Tammo's avatar Tammo

Hi,

I was wondering if there is a way to extract a specific piece of text from the description field that I import with FeedGrab. As you can see the location is included with the description field and I would like to take it out and use the information to fill the city, state and country fields.

<description>Job location - US, Massachusetts, Framingham<br /><br />To clean and stock guest rooms to ensure Hershas high standards…

Is this possible with FeedGrab (which works great) or maybe with another tool?

Regards, Tammo

       
Remco van den Heuvel's avatar
Remco van den Heuvel
15 posts
16 years ago
Remco van den Heuvel's avatar Remco van den Heuvel

Only possible sollution can be with regular expressions and then cut the found string “US, Massachusetts, Farmingham” into an array and grab the three into the designated fields. Maybe this plugin find and replace, can help you. it also allows regex functions to be executed. If that does not work you must fall back to php functions like this addon has php functions

Regards

       
First 10 11 12 13 14 Last

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.