简体   繁体   English

解析关键字的单个Twitter feed的最佳方法

[英]Best way to parse a single twitter feed for a keyword

I need to be able to grab a single tweet that has a specific word in it, then display that tweet on a website. 我需要能够抓取其中包含特定单词的单个推文,然后在网站上显示该推文。

I'm currently using twitter.js (http://code.google.com/p/twitterjs/) to display the most recent 3 tweets, but I'm not sure if I can parse this to display only a tweet containing a certain word. 我目前正在使用twitter.js(http://code.google.com/p/twitterjs/)来显示最新的3条推文,但不确定是否可以将其解析为仅显示包含一定的词。

I'm currently looking for suggestions on the best solution for this, whether it's javascript or not. 我目前正在寻找关于最佳解决方案的建议,无论它是否是javascript。

Why dont you just use the API? 您为什么不只使用API​​?

https://dev.twitter.com/docs https://dev.twitter.com/docs

And then do a RegEx on the tweet text and filter them out that way. 然后对tweet文本执行RegEx并以这种方式过滤掉它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM