The module should support the extraction of GeoRSS information from modules other than just aggregator2. These should include leech, aggregator node and its successor feedparser.

CommentFileSizeAuthor
#9 georss_feedparser.patch2.92 KBgeodaniel

Comments

geodaniel’s picture

Assigned: Unassigned » geodaniel

I started looking into this today, and restructured some of the code in the module to try and facilitate it. I couldn't see an obvious way to access the feed data from Leech module, though have posted a feature request for that (or a different way of doing it) at #99193.

stanbroughl’s picture

looking forward to seeing this! any idea when integration might happen? i'm sure you're busy but i thought i'd be cheeky and ask

geodaniel’s picture

Thanks for the interest. I've not had a chance to look into it again yet, but hopefully soon. Which aggregation module are you using? I think Leech and Feedparser are going to be the two that I add support for, unless there are any other modules people are interested in using with GeoRSS.

stanbroughl’s picture

i'm going with leech, which i'm trying to configure now, but yes i think you are right that leech and feedparser seem to be the two big options out there that users are going for.

If you need any testing doing let me know - i'm not a coder but i'll happily spit you out a list of any bugs i find - this module would be great to geolocate some news items i'm looking to pull in for a site we are looking to launch in march - www.interragate.info

geodaniel’s picture

Thanks - help is always appreciated, especially in testing and picking up on things I may have missed. Suggestions for feature improvements welcome too :)

stanbroughl’s picture

after a few days of testing both leech and feedparser i've changed my mind and i'm going with feedparser instead - its much more suited to what i want it to do!

geodaniel’s picture

Just discovered there's a ticket over in the Feedparser queue for this too: http://drupal.org/node/103264

stanbroughl’s picture

cheers i'll keep an eye on it!

geodaniel’s picture

StatusFileSize
new2.92 KB

Feedparser support is getting there (see attached patch), but it needs a little patch to Feedparser module and is adding locations with 'xx' as the country currently (more work with location module needed).

stanbroughl’s picture

good to hear there's some progression on this! i've applied the patch on both modules - should it be working or do we need to wait for the location updates?

Cheers

Lucy

geodaniel’s picture

It should be working, at least partially... next time you refresh the feed, assuming it's valid (it is important that it's valid) the items should come in with location information added. You'll also need to enable location for the feed aggregator nodes if you hadn't already.

There's no need yet to patch location module (there's a hack in here that makes it work by setting country to 'xx') but I'm hoping to get some time on that and get it working as it should.

Let me know how it goes.

stanbroughl’s picture

i've applied the patches and got location enabled but still no joy on the locations coming in - this is one of the feeds i've got running with feedparser http://earthquake.usgs.gov/eqcenter/catalogs/feed.php?feed=eqs7day-M5.xml does it work on your system? It seems valid and had the georss info in it

cheers

geodaniel’s picture

Lucy, that feed is working for me.

Do you get items coming in, but without location information attached to them? Do you get any errors displayed? Have you updated feedparser module recently? If so, have you run update.php as there are changes to the database tables that need to be made by the upgrade script.

When you say you've got location enabled, do you mean the module as a whole, or for that specific node type? In ?q=admin/settings/content-types/aggregator-item I've got the number of locations set to 1 and the rest of the fields set to 'do not collect...'

geodaniel’s picture

I've got a patch over in the location module queue now too which should allow us to save location information on incoming feed items once again, without the hack of using 'xx' as the country. I think that gives an end to end information flow again, and with basic testing it does appear to, but I need to sit down and test it all together to make sure.

stanbroughl’s picture

sorry for the delay in getting back to you, i've developed RSI in my right hand and today is the first day typing is bearable!

the problem i have i think is that i need to tag multiple countries to some feedparser nodes but only one location to others in order to get news items to filter through to the right pages. do you think this could be the problem? i've got 20 locations allowed in the settings/content types/aggregator item section and only one initially enabled on the form. i think there could be problems with the multiple location saving full stop at the moment though as its losing some of them at the moment

geodaniel’s picture

D'oh - sorry to hear about your wrist! I haven't done any testing with regards to locations on nodes being edited once they've come in, which I think is what you're doing, or even seeing what happens when locations are updated. This starts to get more complex now that there is potentially more than one location on the node but only one on the incoming item.

Am I right in thinking what you want to do is have feed items coming in with the coordinates on them, save that information against the node that's created, and then edit that node into a story which you'd then like to tag with more general locations (countries) in addition to the coordinates that came in originally? That definitely sounds like a use-case I need to support.

stanbroughl’s picture

yeah thats right - once they come in all i want to do is country tag them so they filter onto the right pages and add any taxonomy tags that are relevant. i'm running a mix of georss feeds and non georss feeds so some news items have multiple countries featured in them that need to be tagged where its more general than an item for a specific locations (eg. earthquake).

i think you've got my email address - any chance you can email me the feedparser and georss files that you've patched on the version you have working? for some reason its not liking mine right now

stanbroughl’s picture

ok i've repatched the files and they're working now and i'm getting the coordinates coming in - think i had an extra space in it wasn't liking.

i'll try the multiple location adding on a few different items and let you know how it goes

geodaniel’s picture

I've just applied an updated patch (no need for the country hack now) to the 4.7 branch. If you have the latest version of Feedparser and Location module you can now extract location information from incoming feeds once again.

This patch also makes it work with Aggregator2 again, though foreach errors (related to #114170) are thrown by location module for all feeds. The foreach problem is also present for Feedparser nodes if trying to add nodes from feeds that didn't have location information associated with them (the patch in #114170 fixes that issue).

Still need to look into doing this with Drupal 5.x

jamesJonas’s picture

subscribing

rsoden’s picture

Status: Active » Closed (won't fix)

As of the Drupal 6 release, the GeoRSS module no longer parses incoming data