I have an external script that generates content and I want to insert that content to Drupal CCK nodes.

How do I do it? Is there an API for this? Do I have to use an import module? Or do I have to insert the content in the database directly?

Comments

nevets’s picture

I would start with the feeds module to see if that will meet your needs, it will depend on the format of the external data.

mcfilms’s picture

How is the content exposed? Have you looked at the Feeds module?

EDIT: Nevets beat me to it.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

tekken’s picture

I have looked at the feeds module and guess that's one possibility, but wouldn't it be a workaround?

Is there a more direct or elegant way to get node content into the Drupal db that you can recommend?

nevets’s picture

Feeds is a pretty elegant and flexible way to do what you want. The alternative is to write a custom module.