Best way to automatically import data on cron run?

acecombat - June 28, 2009 - 03:58

I have an external program that I can have output plain text in any format I want (CSV, XML etc.) based on a template I give it, and I want to have Drupal automatically import new data when this file is updated. The only requirements is that it needs to:

-Automatically run on a cron run
-Create menu links under a desired menu for the new items it creates
-(Not required but would be handy) Delete nodes that no longer appear in the output file.

I've tried with FeedAPI and that *almost* does what I need it to do except for the menus, and that it won't allow the feed to contain tags or tags (Even after selecting to allow any HTML content)

So how would be the best way for me to go about this? I am happy to use FeedAPI if someone knows how to fix the 2 issues I have with it, otherwise I am happy to use any other modules that may be needed.

2 CMS's walk into a

acecombat - June 29, 2009 - 01:20

2 CMS's walk into a bar...
*BUMP*

=-=

VM - June 29, 2009 - 01:22

Likely more people in IRC #drupal-support that can handle this level of question.

I might try there also...But

acecombat - June 29, 2009 - 01:25

I might try there also...But forums are a better bet for me as I can't access IRC at work, so then I'd have to go home and spend unpaid time doing work :O

So still, if anyone knows of a good way I'm really eager to hear!!!!

Hi, I've had almost the same

dealancer - November 26, 2009 - 07:15

Hi,

I've had almost the same problem as you had.

I have created new module Node import via cron, it requires Node import module.
User or bot should append content to the existent files for tasks and then it would be processed in cron.

I hope it will be useful for you. Please test it.

I can only tell you the

Jay Matwichuk - November 26, 2009 - 08:18

I can only tell you the programmatic way to do it, but you can use hook_cron() in a custom module, and write whatever script you want into it.

 
 

Drupal is a registered trademark of Dries Buytaert.