README.txt 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. "It feeds"
  2. FEEDS
  3. =====
  4. An import and aggregation framework for Drupal.
  5. http://drupal.org/project/feeds
  6. Features
  7. ========
  8. - Pluggable import configurations consisting of fetchers (get data) parsers
  9. (read and transform data) and processors (create content on Drupal).
  10. -- HTTP upload (with optional PubSubHubbub support).
  11. -- File upload.
  12. -- CSV, RSS, Atom parsing.
  13. -- Creates nodes or terms.
  14. -- Creates lightweight database records if Data module is installed.
  15. http://drupal.org/project/data
  16. -- Additional fetchers/parsers or processors can be added by an object oriented
  17. plugin system.
  18. -- Granular mapping of parsed data to content elements.
  19. - Import configurations can be piggy backed on nodes (thus using nodes to track
  20. subscriptions to feeds) or they can be used on a standalone form.
  21. - Unlimited number of import configurations.
  22. - Export import configurations to code.
  23. - Optional libraries module support.
  24. Requirements
  25. ============
  26. - CTools 1.x
  27. http://drupal.org/project/ctools
  28. - Job Scheduler
  29. http://drupal.org/project/job_scheduler
  30. - Drupal 7.x
  31. http://drupal.org/project/drupal
  32. - PHP safe mode is not supported, depending on your Feeds Importer configuration
  33. safe mode may cause no problems though.
  34. Installation
  35. ============
  36. - Install Feeds, Feeds Admin UI.
  37. - To get started quick, install one or all of the following Feature modules:
  38. Feeds News, Feeds Import, Feeds Fast News (more info below).
  39. - Make sure cron is correctly configured http://drupal.org/cron
  40. - Go to import/ to import data.
  41. SimplePie Installation
  42. ======================
  43. - To install the SimplePie parser plugin, complete the following steps:
  44. 1. Download SimplePie from http://simplepie.org/downloads. The recommended
  45. version is: 1.3.
  46. 2. Decompress the downloaded zip file.
  47. 3. Rename the uncompressed folder to 'simplepie'.
  48. For example rename 'simplepie-simplepie-e9472a1' to 'simplepie'.
  49. 4. Move the folder to sites/all/libraries. The final directory structure
  50. should be sites/all/libraries/simplepie.
  51. 5. Flush the Drupal cache.
  52. 6. The SimplePie parser should be available now in the list of parsers.
  53. Feature modules
  54. ===============
  55. Feeds ships with three feature modules that can be enabled on
  56. admin/build/modules or - if you are using Features - on admin/build/features.
  57. http://drupal.org/project/features
  58. The purpose of these modules is to provide a quick start for using Feeds. You
  59. can either use them out of the box as they come or you can take them as samples
  60. to learn how to build import or aggregation functionality with Feeds.
  61. The feature modules merely contain sets of configurations using Feeds and in
  62. some cases the modules Node, Views or Data. If the default configurations do not
  63. fit your use case you can change them on the respective configuration pages for
  64. Feeds, Node, Views or Data.
  65. Here is a description of the provided feature modules:
  66. - Feeds News -
  67. This feature is a news aggregator. It provides a content type "Feed" that can
  68. be used to subscribe to RSS or Atom feeds. Every item on such a feed is
  69. aggregated as a node of the type "Feed item", also provided by the module.
  70. What's neat about Feeds News is that it comes with a configured View that shows
  71. a list of news items with every feed on the feed node's "View items" tab. It
  72. also comes with an OPML importer filter that can be accessed under /import.
  73. - Feeds Fast News -
  74. This feature is very similar to Feeds News. The big difference is that instead
  75. of aggregating a node for every item on a feed, it creates a database record
  76. in a single table, thus significantly improving performance. This approach
  77. especially starts to save resources when many items are being aggregated and
  78. expired (= deleted) on a site.
  79. - Feeds Import -
  80. This feature is an example illustrating Feeds' import capabilities. It contains
  81. a node importer and a user importer that can be accessed under /import. Both
  82. accept CSV or TSV files as imports.
  83. PubSubHubbub support
  84. ====================
  85. Feeds supports the PubSubHubbub publish/subscribe protocol. Follow these steps
  86. to set it up for your site.
  87. http://code.google.com/p/pubsubhubbub/
  88. - Go to admin/build/feeds and edit (override) the importer configuration you
  89. would like to use for PubSubHubbub.
  90. - Choose the HTTP Fetcher if it is not already selected.
  91. - On the HTTP Fetcher, click on 'settings' and check "Use PubSubHubbub".
  92. - Optionally you can use a designated hub such as http://superfeedr.com/ or your
  93. own. If a designated hub is specified, every feed on this importer
  94. configuration will be subscribed to this hub, no matter what the feed itself
  95. specifies.
  96. Libraries support
  97. =================
  98. If you are using Libraries module, you can place external libraries in the
  99. Libraries module's search path (for instance sites/all/libraries. The only
  100. external library used at the moment is SimplePie.
  101. Libraries found in the libraries search path are preferred over libraries in
  102. feeds/libraries/.
  103. Transliteration support
  104. =======================
  105. If you plan to store files with Feeds - for instance when storing podcasts
  106. or images from syndication feeds - it is recommended to enable the
  107. Transliteration module to avoid issues with non-ASCII characters in file names.
  108. http://drupal.org/project/transliteration
  109. API Overview
  110. ============
  111. See "The developer's guide to Feeds":
  112. http://drupal.org/node/622700
  113. Testing
  114. =======
  115. See "The developer's guide to Feeds":
  116. http://drupal.org/node/622700
  117. Debugging
  118. =========
  119. Set the Drupal variable 'feeds_debug' to TRUE (i. e. using drush). This will
  120. create a file /tmp/feeds_[my_site_location].log. Use "tail -f" on the command
  121. line to get a live view of debug output.
  122. Note: at the moment, only PubSubHubbub related actions are logged.
  123. Performance
  124. ===========
  125. See "The site builder's guide to Feeds":
  126. http://drupal.org/node/622698
  127. Hidden settings
  128. ===============
  129. Hidden settings are variables that you can define by adding them to the $conf
  130. array in your settings.php file.
  131. Name: feeds_debug
  132. Default: FALSE
  133. Description: Set to TRUE for enabling debug output to
  134. /DRUPALTMPDIR/feeds_[sitename].log
  135. Name: feeds_importer_class
  136. Default: 'FeedsImporter'
  137. Description: The class to use for importing feeds.
  138. Name: feeds_source_class
  139. Default: 'FeedsSource'
  140. Description: The class to use for handling feed sources.
  141. Name: feeds_data_$importer_id
  142. Default: feeds_data_$importer_id
  143. Description: The table used by FeedsDataProcessor to store feed items. Usually a
  144. FeedsDataProcessor builds a table name from a prefix (feeds_data_)
  145. and the importer's id ($importer_id). This default table name can
  146. be overridden by defining a variable with the same name.
  147. Name: feeds_process_limit
  148. Default: 50
  149. The number of nodes feed node processor creates or deletes in one
  150. page load.
  151. Name: http_request_timeout
  152. Default: 15
  153. Description: Timeout in seconds to wait for an HTTP get request to finish.
  154. Note: This setting could be overridden per importer in admin UI :
  155. admin/structure/feeds/<your_importer>/settings/<your_fetcher> page.
  156. Name: feeds_never_use_curl
  157. Default: FALSE
  158. Description: Flag to stop feeds from using its cURL for http requests. See
  159. http_request_use_curl().
  160. Name: feeds_use_mbstring
  161. Default: TRUE
  162. Description: The extension mbstring is used to convert encodings during parsing.
  163. The reason that this can be turned off is to be able to test Feeds
  164. behavior when the extension is not available.
  165. Glossary
  166. ========
  167. See "Feeds glossary":
  168. http://drupal.org/node/622710