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

LHAuctioneers's avatar
LHAuctioneers
33 posts
about 16 years ago
LHAuctioneers's avatar LHAuctioneers

can anyone help me get feed grab working? my blog host seems to have changed something with the Atom feed and now i get “array” populated in my “Content” custom weblog.

here is the link to the feed: http://www.chicagonow.com/blogs/whats-it-worth/atom.xml

here is my import template:

{exp:feedgrab url="http://www.chicagonow.com/blogs/whats-it-worth/atom.xml" 
                          weblog="22" 
                          title="title"
                          unique=“guid”
                          date="published"
                          use="link|content" 
                          fields="ext_link|content" }
<h1>Feed import finished</h1>
       
medic119's avatar
medic119
52 posts
about 16 years ago
medic119's avatar medic119

This plugin is great. It is 99% or what I needed. I am pulling my tweets into my blog as entries so people can possibly comment and I have a record of my daily life.

The biggest issue I have is actually related to the twitter feed itself and I was hoping that FeedGrab had some kind of workaround and or feature request.

title=”title” This parameter reads the title of the RSS feed and creates a new title for the entry, which is fine except that twitter places the entire tweet in the title and description. Is there a way to put a custom title in that field? ie title=”Tweeted on pubDate” so my titles make sense when the entries are created? Possibly allow for EE style date formatting.

The other minor issue I have is that the feed publishes the author automatically, ie ffpblog:tweet. Is there a way to get it to erase everything up to the first : since that seems to be how Twitter formats the feed?

I am currently using twitter timeline to display tweets, but it would be so much better to have them created as entries within the blog so I can capture them for posterity.

thanks.

       
Rob Quigley's avatar
Rob Quigley
236 posts
15 years ago
Rob Quigley's avatar Rob Quigley

I have the same problem as below - pulling in RSS from a twitter feed. Looks fine in CP. Doesn’t output anything. I tried adding site=”” parameter just in case but no luck. This is not a multisite setup.

sorry for cross post to “how to” 10 days and no response so.. I’ve got a Feedgrab issue where a twitter feedgrab import is not working as it should when output to weblog:entries I have the “FeedGrab” plugin pulling in data from twitter. it looks more or less like this:
{exp:feedgrab url="http://twitter.com/statuses/user_timeline/11111111.rss" 
weblog="21" 
title="title" 
date="pubDate" 
use="link|description" 
fields="twtlink|twtbody" 
unique="twtlink" }
twtlink and twtbody are custom fields within a field group dedicated to twitter feeds. twtbody is a text input field of 161 characters w text formatting set to none twtlink is a text input field of 256 characters w text formatting set to xhtml the import appears to succeed pulling in 20 or so items, generating a response in the following format: Fetching: http://twitter.com/statuses/user_timeline/111111.rss Checking: twitterusername: twitter post data Found new entry: twitterusername: twitter post data the data is visible and editable in the CP. new posts may be entered directly in the CP the issue comes when I try to use it in an entry form as follows:
{exp:weblog:entries weblog="tweet_feed" orderby="date" limit="10" dynamic="off" show_future_entries="yes"}

{title}<br>
{twtbody}<br>
{twtlink}
{/exp:weblog:entries}
entries entered directly in the CP render fine. entries pulled in via FeedGrab - while they look fine on import and in the CP - do not render… any bright ideas as to what is happening and how to solve it? thanks!
       
dreas's avatar
dreas
61 posts
15 years ago
dreas's avatar dreas

code example? charset?

I have the same problem as below - pulling in RSS from a twitter feed. Looks fine in CP. Doesn’t output anything. I tried adding site=”” parameter just in case but no luck. This is not a multisite setup.
sorry for cross post to “how to” 10 days and no response so.. I’ve got a Feedgrab issue where a twitter feedgrab import is not working as it should when output to weblog:entries …….
       
moresided's avatar
moresided
18 posts
15 years ago
moresided's avatar moresided

Hi bafadam

Are you able to post your template code and the exact settings you made to the two weblogs?

I’ve tried inserting your changes into pi.feedgrab.php but I don’t think I’m quite there yet. Feedgrab was working fine and inserting entries but I can’t get them to associate themselves with their feeds.

I have made custom field in my posts weblog called ‘feed_id’ which is a relationship field pointing at the feeds weblog

I have:

{exp:feedgrab url="{resource_rss_url}" 
                          weblog="9" 
                          title="title" 
                          feed_id="{entry_id}" 
                          post_date="pubDate"
                          use="link|description" 
                          fields="post_url|post_description"}

…but I’m getting an SQL error

(Description: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE entry_id = 187’ at line 1 Query: UPDATE exp_weblog_data SET WHERE entry_id = 187)

Any help really appreciated!

       
bafadam's avatar
bafadam
8 posts
15 years ago
bafadam's avatar bafadam
{exp:feedgrab url="http://themancast.spookyouthouse.com/feed"
                  weblog="3"
                  title="title"
                  pubdate="pubdate"
                  use="link|description"
                  fields="feed_link|feed_description"
                  parent_weblog_id="2"}

I think you’re missing the “parent_weblog_id” parameter there, chief. I could export my weblog settings for you, but that’s a little more work than I think I need to do. Try the parent_weblog_id and let me know if that works for you.

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

Is parent_weblog_id equal to site_id? I’ve never heard of it before.

       
bafadam's avatar
bafadam
8 posts
15 years ago
bafadam's avatar bafadam
Is parent_weblog_id equal to site_id? I’ve never heard of it before.

He’s using the mod that I posted, not the standard. It was just an example on how you could relate one weblog to another via the code that was already posted.

       
moresided's avatar
moresided
18 posts
15 years ago
moresided's avatar moresided

Thanks for replying. Have added parent_weblog_id but I’m still getting the same error. Also noticed in my code I have this parameter | feed_id=”{entry_id}” | whereas you don’t. Thinking either my custom fields are wrong or something else I don’t know.

The mySQL error is in the ‘SET WHERE’ bit which I think happens here:

$sql = $DB->update_string('exp_weblog_data', $relDataSwap, 'entry_id = ' . $entry_id);

Hmm…

       
Avi Frier's avatar
Avi Frier
59 posts
15 years ago
Avi Frier's avatar Avi Frier

Is there a way to specify particular keywords, and have feedgrab only grab articles that include those keywords?

Thanks for a great plugin!

       
mooo's avatar
mooo
168 posts
15 years ago
mooo's avatar mooo

Is there any way to pull “username” out of the following code from an rss feed?

<myst:CreatedByID ObjectClass="User" Title="username">147777</myst:CreatedByID>

I’m trying to move a client’s blog from Myst to EE, and I’m having trouble pulling the blog entry’s author name out.

       
mooo's avatar
mooo
168 posts
15 years ago
mooo's avatar mooo

also, I’m having the exact same problem as comment #182: I get:

Checking: Title1 Checking: Title2 Checking: Title3

and so on, but no entries are being added.

       
mooo's avatar
mooo
168 posts
15 years ago
mooo's avatar mooo

Ok, this might be a clue. The entries that were getting checked are apparently in the system, but when I click the Edit tab, they don’t show up. Yet, when I view the template I set up to display the entries that get imported, they do show up. What’s up with that?

       
OdotJdot's avatar
OdotJdot
12 posts
15 years ago
OdotJdot's avatar OdotJdot
Ok, this might be a clue. The entries that were getting checked are apparently in the system, but when I click the Edit tab, they don’t show up. Yet, when I view the template I set up to display the entries that get imported, they do show up. What’s up with that?

wow… i have the COMPLETE opposite problem! i can edit them. but they dont show up in the template. it says they have been checked, but they dont show up. then… only the title will show up if i edit that particular entry. but nothing else.

im thinking, do i need my weblog prefrences set up any particular way? like does the particular weblog HAVE to have a default category that it post to?

thanks.

       
mooo's avatar
mooo
168 posts
15 years ago
mooo's avatar mooo

my particular problem was that I hadn’t assigned an author. I was trying to get the plugin to parse the author from the feed, but apparently that isn’t supported. The entries were showing up on the Control Panel home page, so I opened them from there and assigned an author.

My new problem is that I can’t get the categories to parse. They’re multiple word categories like Employment Verification, and they’re all inside tags like this:

<category>Employment Verification</category><category>Form I-9</category>

and so on. They won’t parse at all-is there another way to get categories?

       
First 14 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.