构建 Twitter 阅读器/SMTP 邮件程序
因此,我想构建一个应用程序,它可以持续监控某个主题标签/阶段,例如#cookies,并每天向我(以及在该网站上注册的任何其他人)发送一封电子邮件,其中包含所有推文的列表。
我有一些 Ruby/Rails 经验,正在考虑在 Heroku 上构建它,但我想知道是否有一个更简单的平台来构建它,比如 Google App Engine(我对此知之甚少)
So I want to build an app that constantly monitors a certain hashtag/phase like #cookies and sends out an email to me (and anyone else who signs up on the site) every day with a list of all the tweets.
I have some Ruby/Rails experience and was considering building this on Heroku, but I was wondering if there was an easier platform to build it on, like say, Google App Engine (which I know very little about)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您希望这是一个 Web 应用程序(根据您的描述不一定正确),我推荐 Rails。您对此有一些经验,并且这是一个可靠的平台。 Heroku 应该可以很好地解决这个问题,但它肯定不是唯一可行的选择。我不是 Heroku 方面的专家,除了其主要功能之外,我对您的应用程序了解不多,因此我无法告诉您 Heroku 是否是最佳选择。至于 Google App Engine,我相当无知,但我听说 Rails 目前不是它的最佳选择。 (只是道听途说。)您还可以考虑 VPS,这可能需要更多工作,但也非常有教育意义。
该应用程序本身应该非常易于使用。插入 Twitter 搜索 API (http://dev.twitter.com/doc/get/search) 或搭载某些第三方 Twitter 聚合器。然后设置一个 cron 作业来访问您选择的任何数据流(Twitter API 或第三方)并将结果插入到 ActionMailer 中。
Assuming you want this to be a web application (not necessarily true from your description), I'd recommend Rails. You have some experience with it, and it's a solid platform. Heroku should work fine for this, but it's certainly not the only viable option. I'm not an expert on Heroku, and I don't know much about your app other than its primary function, so I couldn't tell you if Heroku is the optimal choice. As for Google App Engine, I'm pretty ignorant, but I've heard Rails isn't currently its sweet spot. (Just hearsay.) You could also consider a VPS, which is probably more work but also very educational.
The app itself should be pretty easy to use. Plug in to the Twitter Search API (http://dev.twitter.com/doc/get/search) or piggyback off some third-party Twitter aggregator. Then set up a cron job that accesses whatever data stream you've picked (Twitter API or third-party) and plug the results into ActionMailer.