English 中文(简体)
ium中 h取时出现的报废数据
原标题:scrape data which appears while hovering in selenium

亲爱的朋友们,

I want to scrape data in the website: https://en.macromicro.me/collections/19/mm-oil-price/182/mm-oil-expectation-index

Basically, I know how to use selenium to extract static data such as the text on a typical Newpaper site like BBC, DW.

However, when I want to scrape the data on the macromicro. It is totally different situation:

  • the data hidden in the graph/chart
  • the data appears only when the mouse hovering and disappears when the mouse moves out

for example, when I hover on the line, the data shows (you can say it pop up).

因此,亲爱的朋友,请让我提出一些想法,以删除数据?

enter image description here

问题回答

诸如你所描述的交互和动态视化数据,比从网站中删除静态文字更为复杂。 在这种情况下, Sel可能不是最有效的工具,因为它旨在与网页互动,但可能无法直接支持从对冲互动和人口收集数据。

然而,你可以考虑以下几种办法:

  1. www.un.org/Depts/DGACM/index_spanish.htm 网上活动: 当你与视觉化互动时,数据可能通过网络要求从服务器上排出来。 开放你的浏览器开发工具,进入“网络”表格。 如果有任何网络要求,则与视像联系和观察。 这些请求可能包含你重新研究的数据。 你们可以在我们的法典中使用requests等图书馆复制这些要求。

  2. www.un.org/Depts/DGACM/index_spanish.htm 采用A/62/L: 如果网站提供AAP,以检索图像化所使用的数据,那么获取数据的最有效途径是。 查阅网络要求或网页源代码中的APIC终点。

  3. <>Headless Browsing with Puppeteer (Javagust): Puppeteer是一家Node.js图书馆,提供无头巾的环境。 你可以将其用于与网页进行方案性互动,包括诸如 h和点击等互动。 这可能使你能够掌握在 h上的数据。

  4. <Visual Scraping with SikuliX: SikuliX是一种描述/原子技术,依赖模式配对、屏幕捕获以及与桌面的互动,以完成自动化任务。 它不建议大规模或生产一级的报废,但可能被用于收集在 h上出现的视觉数据。

  5. www.un.org/Depts/DGACM/index_spanish.htm 资料来源:。 有时,提供复杂图像的网站也以可下载的格式提供基本数据(CSV、JSON等)。 如果网站可以选择下载图表中显示的数据。

  6. www.un.org/Depts/DGACM/index_spanish.htm 联系网站所有人: 如果你为了合法目的重置数据,考虑与网站所有人或管理人联系。 它们可能为你更容易地获取数据或愿意与你分享数据。

应始终根据网站的使用条件,从道德上和根据网站进行网络拆解。 如果网站允许拆解或获取数据,则你应尊重其用语。





相关问题
Logic for Implementing a Dynamic Web Scraper in C#

I am looking to develop a Web scraper in C# window forms. What I am trying to accomplish is as follows: Get the URL from the user. Load the Web page in the IE UI control(embedded browser) in ...

Capture ASP output for monitoring

How do I Capture ASP.NET output and then store it as temp memory so that I can use them in an application to do comparison. example. there s this site which has ASP output. Sorry I do not have ...

Error in using Python/mechanize select_form()?

I am trying to scrap some data from a website. The scripts I am trying to write, should get the content of the page: http://www.atpworldtour.com/Rankings/Singles.aspx Should simulate the user going ...

Retrieving dynamic text from a website in vb.net (VS2008)

I want to be able to retrieve dynamic data from a web page (share prices). I started out by retrieving the html code before I realised that as it is live data, the html code will be of little use. ...

Programming languages comparison for web data mining task

I need some help comparing different programming languages, such as: C++, Java, Python, Ruby and PHP, for a task which is related for web data mining (developing web crawler, string manipulations and ...

热门标签