如何使用 php 从网站上的日历中提取数据?
该网站是 Confluence。网站上有很多东西,其中之一就是日历。日历有事件等,我想提取这些事件和日期,以便我可以通过计算机语音朗读向用户朗读我获得的文本。下面是整个事情的图片。
如果有人知道 Twilio,我会尝试让呼叫者从日历中获取信息。
The website is Confluence. It has many things on the website one being a calendar. The calendar has events and such and I would like to extract those events and dates so that I can read the text I obtain to a user through with computer voice reading. Below is a picture of the whole thing.
If anyone is aware of Twilio I am trying to get callers to obtain information from the calendar.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会在 PHP 中使用 CURL 来读取 HTML 页面并使用 HTML 解析器对其进行解析。但我想你所指的日历使用 AJAX 来获取一些元素,在这种情况下你不能做太多的废弃。查找日历的 RSS 或 XML 源。
I would use CURL in PHP to read in the HTML page and parse it using a HTML parser. But I would imagine the calendar you are referring to uses AJAX to fetch some elements in which case you can't do much scrapping. Look for an RSS or XML feed for the calendar.