Home / eZ / HowTo / Twitter to RSS

Convert twitter stream to eZ RSS feed.

runcronjobs

Just the eZ Publish part, and just for demo on localhost in os X. If you don't know anything about RSS, learn that first.

  1. Create a new class to hold the imported RSS items as described in the much more complete Paul Wilson article regarding RSS.
  2. Create a new folder in the content structure, in this case named "Contains Test RSS stuff"
  3. Setup->RSS->New Import, Name Twitter Stream or something like that, paste the twitter rss feed url into the url box and click the Update button.
  4. Set the destination to the folder created in step 2
  5. Drop down the "Class" selector, select the RSS class created in Step 1, click the Set button.
  6. Mapping of class attributes is then straightforward.
  7. In a terminal window in OS X, switch to the eZ Publish directory in /Library/Webserver/Documents
  8. # /usr/bin/php runcronjobs.php
    runcronjobs
  9. Clear cache in admin
  10. Set the "Contains Test RSS stuff" folder created above to sort by "Published" "Descending" - corrected, not "Ascending" as in picture
    sorting rss in admin
  11. View the results in a web browser
    RSS results

I use something very similar all day every day as a most excellent command line time and expense tracker, and practically stream-of-consciousness note taker. Thanks to binny va for sparking the idea.

binny

Animated GIF eZ Logo

No need to dream up layouts and page views, just insert your "stuff".

Roll Your Own Social Network

News networks, and personal sized social networking sites are simple with eZ.