Feed Importer (RSS)

Download plugins, language packs and stuff.

Feed Importer (RSS)

Postby FI-DD » Fri Dec 22, 2006 11:15 pm

With the help of this plugin you can import news from a RSS feed.



This is a basic version based on the import module from Strawberry 1.1.1.

I'm planning to create a more advanced version in a few weeks when I got the time.

So any suggestions are welcome.



Update:

You can add as many feeds as you like. You can import feed by feed or all feeds at once (importing all feeds at once takes a lot of time so it might stop due to maximum execution limits).



Installation:

Upload it to the plugins folder and activate it.
Attachments
feed-import.zip
Feed Importer
(2.69 KiB) Downloaded 860 times
Last edited by FI-DD on Fri Feb 23, 2007 2:22 pm, edited 2 times in total.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby asson » Wed Jan 10, 2007 7:28 pm

Hi,

Thanks for a great plugin, but i was just wondering if does this import data from a Dynamic rss feed?

Will the imported data from the given rss feed be updated utomaticly each time the source website updates it self?
asson
 
Posts: 46
Joined: Fri Nov 24, 2006 2:15 am
Location: Karlstad, Sweden

Postby FI-DD » Tue Jan 16, 2007 8:45 pm

You can either use a Cronjob (that's a server feature - don't know if you have it) to periodically run the script, for example once every hour.



Or you can change the plugin so it runs everytime someone visits your site or everytime you visit the admin panel.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby DeathfireD » Tue Jan 23, 2007 6:47 am

@FI-DD - Can you expand this more so we can have more then 1 rss feed being auto added? Maby expand it so we can have up to 3 or 4 feeds being added.
^)^ DeathfireD ^)^
DeathfireD
 
Posts: 17
Joined: Sun Dec 17, 2006 5:06 am

Postby FI-DD » Wed Jan 24, 2007 7:44 pm

Updated. Please check the first post.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby asson » Thu Jan 25, 2007 2:56 am

FI-DD thanks alot, yes i do have Cronjob and will give it a try.

Thanks for the new modification to the plugin.
asson
 
Posts: 46
Joined: Fri Nov 24, 2006 2:15 am
Location: Karlstad, Sweden

Postby DeathfireD » Thu Jan 25, 2007 12:53 pm

FI-DD wrote:Updated. Please check the first post.




thanks for the update. Now I can have news from partner sites added every few hours on my site :)
^)^ DeathfireD ^)^
DeathfireD
 
Posts: 17
Joined: Sun Dec 17, 2006 5:06 am

Postby afxback » Tue Jan 30, 2007 7:30 pm

as I have used and found it only imports Titles of rss feeds? no short no full news imported? but I am surprized in admin panel, I see the imported feeds without titles and without authors but only with date and category? is this for all?
afxback
 
Posts: 134
Joined: Fri Nov 11, 2005 4:59 pm

Postby FI-DD » Wed Jan 31, 2007 12:15 am

This plugin is only working with the following rss tags:

'title', 'description', 'pubDate', 'category'



If your rss feed outputs the news using different tags it won't work.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby asson » Mon Feb 12, 2007 1:27 am

Hi FI-DD

Just tested the lase modified one, it's really great.


This plugin is only working with the following rss tags:

'title', 'description', 'pubDate', 'category'



Can't you modify the Plugin and make it more dynamic, to add own costum tags? and also make it to work dynamicly with XFields?

For ex;

We say that i have made a costum tag with name LINK, and there is also an XField Field with the same name, when i click the import link for importing news from RSS Feeds, the data wich belongs to LINK tag goes directly into the XField LINK Field and so on for other martching tags and field.



Those tow features will be very nice if they could be done.

I'm not a coder :(



Thanks alot for all your support.
asson
 
Posts: 46
Joined: Fri Nov 24, 2006 2:15 am
Location: Karlstad, Sweden

configuration for max_items...

Postby afxback » Thu Sep 20, 2007 7:43 pm

Feed-import.php is really a good plugin. I have two problems with this and I tell here if any solution could be possible.
1. There is no configuration to chose maximum_items to be imported as I think. I want to import 5 news items from each feed every day, not more. There are some of feeds more than 50 items and all of them are imported at once. So I have to delete a lot of new feeds imported each day.
2. Configuration for automatic import based on time schedule like"Cronjob". Because some servers do not support cronjob.
As I have tested it dose not import none english feeds as good as english chars. I think there are some problems in importing titles of none english feeds and characters. There are "news tile" and "url title" in cutenews and it seems some feeds do not mach this I think. It creates an id for each feed item in database but there is no link to title of records of some feeds and no descriptions. I mean feeds which are supported by this plugin('title', 'description', 'pubDate', 'category' ).
afxback
 
Posts: 134
Joined: Fri Nov 11, 2005 4:59 pm

Postby FI-DD » Fri Sep 28, 2007 3:14 pm

Regarding the maximum items:

In feed-importer.php try changing this:
Code: Select all
if(!news_exists($result['title'][$i], strlen(replace_news('add', $result['description'][$i])))){


to this:
Code: Select all
if(!news_exists($result['title'][$i], strlen(replace_news('add', $result['description'][$i]))) and $j < 5){
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

problems in importing title in portuguese (Brazil) character

Postby marcusmagalhaes » Wed Oct 31, 2007 11:31 am

I think there are some problems in importing titles of none english feeds and characters.


http://www.fenajud.org.br/index.php

29 milhхes de trabalhadores estгo fora da Previd... (imported)
29 milhões de trabalhadores estão fora da Previd... (original)


Lula afirma que "a carga tributбria pode ser meno... (imported)
Lula afirma que "a carga tributária pode ser meno...(original)


Any suggestion?
marcusmagalhaes
 
Posts: 172
Joined: Tue Apr 24, 2007 1:17 pm

Postby Partyism » Mon Nov 05, 2007 11:36 am

I imported a rss feed, but it only shows there short story, there is no link to full-story.

Check: http://www.gelderlander.nl/arnhem (is the page which rss i imported)
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby FI-DD » Tue Nov 06, 2007 6:47 pm

It's because I supposed the feed only shows enough text for the short story. So everything coming from the feed is saved as short story. The full story stays empty.

If your feed shows a lot of text you can easily change the script to put the first x letters into short story and the rest into full story.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron