Drupal从Twitter作为节点导入推文

Drupal import Tweets from Twitter as Nodes

我希望能够将来自Twitter的推文作为Nndes导入Drupal。我希望能够将@names#tags链接回正确的页面。我也不希望myTweeterName出现在tweet的开头。

您将如何去做? twitter模块不创建节点,而是将数据存储在其自己的表中。提要模块可以将RSS提要中的推文作为节点读取,但是将显示我的名字,而不链接@names#tags

Gábor的以下帖子显示了他是如何做到的,但是我不确定他是如何编写一个自定义模块来做到这一点的。

任何指针将不胜感激。


Gabor正在使用Feeds模块以及twitter模块中的输入过滤器。

来自他的帖子:

Tweets have certain special items like
@username references and #hashtags.
These should be linked to their
respective twitter.com pages, and
twitter module has input filters for
these which I could use to build up an
input format. (Given my use case, I
had no use for the rest of the twitter
module, so I took the format code into
my site-specific module, and do not
actually use twitter.module.) The
twitter feed also includes my username
at the beginning, which my site
readers will either know or do not
care about, so I also wrote a quick
filter which will transform my
username to a"from twitter" link at
the end of the node body.

您需要使用feeds模块开始导入您的tweet。然后,您需要将来自Twitter模块的输入格式添加到默认导入中(可能是"过滤的HTML")。


这不再可能,因为Twitter不会将用户时间轴导出为RSS feed