简体   繁体   中英

Scraping flash using HtmlUnit or other java tool

I am using HtmlUnit to scrap date from a site but after login all the data is displayed using adobe flash player as swf object, I don't know any way to scrap data from such page.

Is there any way to extract data from flash page, If yes please help me out, either using HtmlUnit or any other java tool.

thanks.

There is no way that you can interact with Flash applet using HtmlUnit. You can try with selenium ; I never used it, but it looks like there are plugins that enable flash communication like flash selenium

Personally, I think the only way to test user interfaces, when they have such pitfalls, is to hire a tester human being (a good one), and teach the developers to deeply test the gui every time they alter it.

Seems am not too late, there i answered to my question. what all you need to do is

  1. Create your own browser instant
  2. Inject "stockwave flash" plugin
  3. Instantiate htmlunit with new browser instance.

Hope it will help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM