Function Repository Resource:

BrowserWebImage

Source Notebook

Create consistent web image screenshots with a uniform browser frame

Contributed by: Jesse Dohmann

ResourceFunction["BrowserWebImage"][url]

takes a screenshot of the webpage given by url and imports it into the notebook with a generic browser window frame.

ResourceFunction["BrowserWebImage"][url,display]

uses display as the displayed url.

Details and Options

ResourceFunction["BrowserWebImage"] accepts either a string URL, CloudObject or URL.

Examples

Basic Examples (2) 

Create a web image of the Wolfram homepage:

In[1]:=
ResourceFunction["BrowserWebImage"]["https://wolfram.com"]
Out[1]=

Create a web image that uses a different URL for display purposes:

In[2]:=
ResourceFunction[
 "BrowserWebImage"]["https://www.wolframcloud.com/obj/06b9eb05-16b6-4ad5-9aa8-f9e3040680b8", "https://www.helloworld.com"]

Scope (1) 

Create a web image from a symbolic URL:

In[3]:=
ResourceFunction["BrowserWebImage"][
 URL["https://reference.wolfram.com/language/"]]
Out[3]=

Possible Issues (1) 

Sometimes BrowserWebImage creates a web image faster than a CloudObject can render, resulting in a blank screen:

In[4]:=
ResourceFunction["BrowserWebImage"][
CloudObject[
 "https://www.wolframcloud.com/obj/06b9eb05-16b6-4ad5-9aa8-f9e3040680b8"]]
Out[4]=

Publisher

Jesse Dohmann

Version History

  • 1.0.0 – 30 March 2020

Related Resources

License Information