Get your data into Drupal with Feeds
 

Janez Urevc (@slashrsm)
(janez@|http://)janezurevc.name
DrupalCon Portland, Site building track
May 21st 2013

About @slashrsm

Feeds

drupal.org/project/feeds

Demo 1: Import users from CSV

Demo 2: Import RSS feed

Feeds: concepts

Fetcher

  • "downloads" data to your site
  • http download, file upload, location on server, SQL
  • Even some more wierd ones: IMAP, POP3, ....
  • Custom: VideoOnDemand database

Parser

  • transforms raw data into usable form
  • RSS, Atom, CSV, OPML
  • xPath (//h1, //div[@id='article-content'], ...)
  • QueryPath (PHP XML/HTML querying library)
  • YouTube, Vimeo, Excel, ...

Processor

  • knows how to save data
  • nodes, terms, users
  • Drupal commerce products
  • ...

Mapper

  • provides link between parsed data and Drupal object
  • fields!
  • Entity reference, Link, ...
  • very useful if you implement your custom field

Demo 3: Weather observations XML import

Helper modules

Example: "Google Reader replacement"

Resources