Para otro proyecto que estoy desarrollando necesitaba una manera de importar entradas a un blog de Wordpress automaticamente a partir de un feed.
Después de mucho buscar encontré el plugin Auto RSS Importer.
Después de trastocar bastante con él lo he modificado lo suficiente como para sacar mi propia version ya que los cambios modifican casi todo los fuentes y añaden funcionalidad nueva.
Las instrucciones vienen en un fantástico Readme.txt y en el fichero ari-config.php (están en inglés).
Descargar Auto RSS Importer WP-ARI 2.1
P.D.: Hace un par de dias descubri WP-o-Matic que parece que hace casi todo esto y más pero el random que trae mi versión todavia es unico.
Cambios
2.1:
- Arreglado: El sistema de filtrado de caracteres de acuerdo con el importer de RSS de WP2.3.1
- Arreglado: Algunas etiquetas se suprimían cuando la carga se disparaba desde una carga de la web de un visitante, puesto que hacía con sus permisos, se ha arreglado, pero ahora si estando logeado se te dispara la carga es probable que te desconecte.
- Añadido: User-Agent y Referer para la carga via cUrl.
For a personal project I needed an auto RSS to wordpress importer that could read feed every X hours and import new items, after a long search I could find Auto RSS Importer plugin but it lacked some important features and the code used direct database querys.
So I rewrote the whole plugin and now it is more integrated into Wordpress and has new features.
The install instructions are in the README.txt file inside the zip, you need to change some configuration before install so please read it.
Download Auto RSS Importer WP-ARI 2.1
A couple of days ago I found WP-o-Matic wich seems to be the same thing on steroids but still missing the random feature I wanted for my project.
ChangeLog
2.1:
- Changed some code for escaping, cleaning values according to WP RSS importer code.
- Fixed: HTML was stripped from content when the import was triggered by a guest reading the blog, now the import has the same permissions as the user used to import them. This also has a side problem, if you are logged in when it triggers probably you will be logged out.
- Added: Content-Agent forging and use url as referrer as well, only if using CUrl functions.
NO PUBLICAR
Te ofrezco un intercambio de links.
Mi sitio es SeekBlack.com
si estas interesado pon el siguiente link
Ahorra energía usando SeekBlack
con link directo a http://www.seekblack.com
una vez puesto el link en un lugar visible mandame un mail y al instante te pongo los links
mi mail es nicogarcia en gmail
saludos
I am planning to test this plugin and was going through the ari-config file.
I just wanted to know, how can I add more than one rss feed ?
Use something like this:
$rss_feeds = array(
array(
‘url’ => ‘Url’,
‘kwords’ => ”,
’status’ => ‘publish’,
‘link_text’ => ”,
‘category’ => 2,
‘max_imports’ => 2
),
array(
‘url’ => ‘Url’,
‘kwords’ => ”,
’status’ => ‘publish’,
‘link_text’ => ”,
‘category’ => 2,
‘max_imports’ => 2
),
array(
‘url’ => ‘Url’,
‘kwords’ => ”,
’status’ => ‘publish’,
‘link_text’ => ”,
‘category’ => 2,
‘max_imports’ => 2
)
);
I am not sure if the plugin works in WP 3.2.X and I know there are some posts with date problems if you used delayed import (they are super delayed but they are no more than 5%).
Thanks will try that solution and report back.
It seems to be working … I have set 2 feeds.
Is it possible to have a random feed selected each day for “url” field.
Umm currently it just extract up to max_imports (the value in each feed) per RSS feed and then choose at random max_imports (the global value) and import them.
To choose only one per activation change the following function in wp-ari.php
function fetch_rss_feeds() {
$x=rand(0,count($this->rss_feeds)-1);
$this->extract_items($this->rss_feeds[$x]);
if( count($this->items) >= $this->max_imports && !$this->random) { // if max_imports reached or exceeded
$this->items = array_slice($this->items, 0, $this->max_imports);
}
$this->import_items(); // import extract items
}
I have a query, Im having a huge problem, I want to import my old blog (smultroncocktail.blogg.se) to my new WP blog. Can I do that by using this plugin? I really need help with this.
Thanks in advance
If you only want to import the feed one time (like a migration) then I should recommend you to use the import option of your Wordpress blog (”Management” -> “Import”)
This plugin is to auto-add new posts based on external feed, but it does not saves post data and will import new items every X hours.
Ok, thank you frisco.
I have looked in to that but they doesnt support my old blog host.
I know this isn’t your problem, But do you know anything I could do, because it’s 2000 posts.. I really want it there on my own wp blog.. I would love if you had any ideas
No problem.
Probably it should not be so difficult to make a script to import all post if you can get a database export from your current blog, but images, categories and user will be more difficult to manage.
I can try to do it for you if you provide me at least a small piece of the export with the post but that’s all I can do.
Wow frisco, thank you
Do you want my database export folder or the rss file? (http://smultroncocktail.blogg.se/index.rss)
I admire you for helping me, I have been really clueless about what to do :)¨
If you want to, you can answer me on email if you want to, [removed] You can perhaps remove my email adress after you have saved it
You rock
hi frisco!
I have the same problem as vanja has described above (importing blogg.se’s RSS to WP).. did you found a solution for the problem? can you please email me if that’s the case?! (christoffer.melin (@) live.com)
Finally vanja disappeared and I did not found a solution, I can offer you the same thing, give me a database export o some kind of file, rss, stream or something with your posts and I will try to convert it to rss or make a script to import them into wordpress.
If you don’t want to handle me all your database then at least give me a piece of it so I can test with it.
The point is that I am not sure if blogg.se offers any method to backup your data.
Hola me parecio muy completo especialmente por el ramdom post lastimosamente no encuentro la llamada de la funcion hacia el lugar donde aparecera si todavia es funcional te lo agradeceria eh intentado buscando el llamado del plugin base en la pagina q das y creo por ahi tampoco
/* Auto RSS Importer */
include(’wp-ari/index.php’);
/* Short and sweet */
define(’WP_USE_THEMES’, true);
require(’./wp-blog-header.php’);
Un Saludo
No hace falta hacer llamada alguna desde el theme, solo instalar el plugin, configurar las fuentes y activarlo, desgraciadamente hay que configurarlo a mano modificando un fichero de texto ya que no tiene interfaz de administración.
En cualquier caso hecho eso ya se empiezan a importar post en tu blog.