Using Drupal, how to get access to old, no longer available, feed entries?
我正在一个项目中,我被要求将来自各个网站的大量提要聚合到一个本地/可搜索的数据库中。该项目/站点基于Drupal,而旧的提要条目是该项目的关键数据。我的问题是:
- 有没有办法使用Drupal访问旧的,不再可用的提要条目?如果不在Drupal中,是否有PHP方式可以做到这一点?
谢谢。
在设置中,有一个选择标签为"丢弃早于:的项目",该标签最多可以使用6周,但是可以使用以下方法在自定义模块中覆盖:
1 2 | function MYMODULE_form_aggregator_admin_settings_alter(&$form, &$form_state) { $form['aggregator_clear']['#options'][157784630] ="Nearly Never aka 5 years"; |
} ??
如此处所述
这将自动为您获取提要,并将其存储在aggregator_item表中
另一种选择是成熟的http://drupal.org/project/feedapi或较新的http://drupal.org/project/feeds,两者都旨在将提要解析为drupal节点,用户等。<铅>
Feed(下一代feedapi)具有以下有用功能:
Import or aggregate data as nodes,
users, taxonomy terms or simple
database records.
1
2
3
4
5
6
7
8
9
10 * One-off imports and periodic aggregation of content
* Import or aggregate RSS/Atom feeds
* Import or aggregate CSV files
* Import or aggregate OPML files
* PubSubHubbub support
* Create nodes, users, taxonomy terms or simple database records from import
* Extensible to import any other kind of content
* Granular mapping of input elements to Drupal content elements
* Exportable configurations
* Batched import for large files
祝你好运!