如何通过任何爬虫php获取悬停数据(ajax) [英] How to get hover data(ajax) by any crawler php

查看:37
本文介绍了如何通过任何爬虫php获取悬停数据(ajax)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在抓取一个网站的数据.我能够在一个页面上完整的内容.但是页面上的一些数据是在悬停在一些图标上并显示为工具提示之后出现的.所以我也需要这些数据.是否可以使用任何爬虫.

I am crawling one website's data. I am able to whole content on a page. But some data on page comes after hover on some icons and shown as tooltips. So I require that data also. Is it possible with any crawler.

我正在使用 PHP 和 simplehtmldom 来解析/抓取页面.

I am using PHP and simplehtmldom for parsing/ crawling page.

推荐答案

任何爬虫都无法获取悬停数据.

爬虫爬取网页并获取整个数据(HTML 页面源).这是我们只要点击 URL 就可以查看的视图.悬停需要鼠标在页面上的 HTML 属性上移动操作,即手动操作.据我所知,目前没有爬虫执行悬停和获取数据的操作.因此爬虫无法获取悬停数据.

Crawlers crawl the web page and gets whole data ( HTML page source ). It's view which we can view as soon as we hit URL. Hover need mouse moving action over HTML attribute on page i.e manual action. And currently no crawlers do actions for hovering and getting that data as per my knowledge. So this is not possible to get hover data by crawlers.

这篇关于如何通过任何爬虫php获取悬停数据(ajax)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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