如何从其他程序中筛选刮擦 [英] How to screen scrape from another program
问题描述
我需要自动从软件获取数据到文件。但是,我只有在进行研究时才能获得针对网络抓取的搜索结果。那么,有没有办法从不具有导出功能的本地桌面应用程序中获取数据?我需要某种本地桌面应用程序的抓取功能。
I need to automatically get data from a software to a file. However, I only get search results for web scraping when I did my research. So, is there a way to get data from a local desktop application that does not have export function? I need some local-desktop-application sort of scraping.
例如,由于本地桌面应用程序(例如Windows Media Player)(没有随机示例)没有导出功能要将其音乐库数据存储到文件中,您需要创建什么程序才能导出这些数据?
For example, since a local desktop application such as Windows media player (random example) does not have an export function to put its music library data to a file, what do you need to create a program so you could export those data?
推荐答案
简短的答案是,除非采用兼容格式(txt,csv等),否则无法读取其他应用程序的文件。听起来您想对屏幕截图进行OCR。
The short answer is that there isn't a way to read another app's files unless they are in a compatible format (txt,csv,etc). It sounds like you're wanting to OCR a screen capture.
这可能会为您提供一些工作依据: OCR屏幕截图
This might give you something to work from: OCR a screen capture
某些应用程序(如iTunes)将其库文件保存在某些文件中专有的XML格式。该文件可能不会以 .xml结尾,但仍然是XML文件,在这种情况下,您可以对其进行解析以获取所需的内容。
Some apps (like iTunes) save their library files in some proprietary XML format. The file may not end in ".xml", but it's still a XML file, in which case you can parse it to get what you need.
这篇关于如何从其他程序中筛选刮擦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!