如何解析Google快讯中的数据? [英] How to parse the data from Google Alerts?

查看:94
本文介绍了如何解析Google快讯中的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,除了解析Google发送给您的电子邮件的文本之外,您如何将Google警报信息输入数据库?

Firstly, How would you get Google Alerts information into a database other than to parse the text of the email message that Google sends you?

似乎没有Google Alerts API.

It seems that there is no Google Alerts API.

如果必须解析文本,您将如何解析电子邮件的相关部分?

If you must parse text, how would you go about parsing out the relevant pieces of the email message?

推荐答案

创建警报时,将传递到"设置为"Feed",然后就可以像使用其他提要一样使用提要XML.这更容易解析和提取到数据库中.

When you create the alert, set the "Deliver To" to "Feed" and then you can consume the feed XML as you would any other feed. This is much easier to parse and digest into a database.

这篇关于如何解析Google快讯中的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆