如何以编程方式创建 Google 快讯
我可以使用 C# 以编程方式创建 Google 快讯 ( http://www.google.com/alerts )使用提要在 ASP.NET 应用程序中显示?我知道 Google 没有提供 api 来做到这一点。我需要你的建议/想法。
提前致谢,
Can I create a Google alert ( http://www.google.com/alerts ) programmatically using C# and consume the feed to show in an asp.net application? I know that Google does not provide an api to do that. I need your suggestions / ideas.
Thanks in advance,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
因为这只是一个 HTML 表单,会发布到 http://www.google。 com/alerts/create?gl=us&hl=en(当然,除了本地化之外),您可以通过编程方式执行相同的操作。因为(正如您提到的)没有公共 API,该页面/表单/URL/等的任何部分。可能随时更改,并破坏您的应用程序。
Since that's just an HTML form which posts to http://www.google.com/alerts/create?gl=us&hl=en (localization aside, of course), you could programmatically do the same thing. Since (as you mentioned) there's no public API for this, any part of that page/form/URL/etc. could change at any time, and break your application.
抱歉,这不是 C#,但应该对任何想要实现此类内容的人有所帮助。此 PHP 代码创建提要并返回 RSS URL 以供使用。
基于此页面中的代码:
使用 PHP 登录 Google还有Curl,Cookie关掉了吗?
Sorry, this isn't C#, but should be a help to anyone who wants to implement something like this. This PHP code creates the feed and returns the RSS URL for consumption.
Based on code from this page:
Login to Google with PHP and Curl, Cookie turned off?