You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/07/22 07:12:04 UTC
[jira] [Commented] (NUTCH-2021) Use protocol-selenium to Capture
Screenshots of the Page as it is Fetched
[ https://issues.apache.org/jira/browse/NUTCH-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14636250#comment-14636250 ]
Hudson commented on NUTCH-2021:
-------------------------------
SUCCESS: Integrated in Nutch-trunk #3223 (See [https://builds.apache.org/job/Nutch-trunk/3223/])
NUTCH-2021 Use protocol-selenium to Capture Screenshots of the Page as it is Fetched (lewismc: http://svn.apache.org/viewvc/nutch/trunk/?view=rev&rev=1692216)
* /nutch/trunk/CHANGES.txt
* /nutch/trunk/conf/nutch-default.xml
* /nutch/trunk/src/java/org/apache/nutch/tools/FileDumper.java
* /nutch/trunk/src/plugin/lib-selenium/build-ivy.xml
* /nutch/trunk/src/plugin/lib-selenium/howto_upgrade_selenium.txt
* /nutch/trunk/src/plugin/lib-selenium/ivy.xml
* /nutch/trunk/src/plugin/lib-selenium/plugin.xml
* /nutch/trunk/src/plugin/lib-selenium/src/java/org/apache/nutch/protocol/selenium/HttpWebClient.java
* /nutch/trunk/src/plugin/protocol-selenium/ivy.xml
> Use protocol-selenium to Capture Screenshots of the Page as it is Fetched
> -------------------------------------------------------------------------
>
> Key: NUTCH-2021
> URL: https://issues.apache.org/jira/browse/NUTCH-2021
> Project: Nutch
> Issue Type: New Feature
> Components: plugin, protocol
> Affects Versions: 1.10
> Reporter: Lewis John McGibbney
> Assignee: Lewis John McGibbney
> Fix For: 1.11
>
> Attachments: NUTCH-2021.patch, NUTCH-2021.patch, NUTCH-2021.v3.patch, NUTCH-2021v2.patch, speakers-bureau.php.png
>
>
> This should be a piece of cake. It can be done as follows
> {code}
> WebDriver driver = new FirefoxDriver();
> driver.get("http://www.google.com/");
> File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
> // Now you can do whatever you need to do with it, for example copy somewhere
> FileUtils.copyFile(scrFile, new File("/usr/local/pics/screenshot.png"));
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)