Skip to content

Instantly share code, notes, and snippets.

@url2png
url2png / url2png-example-c-sharp
Created June 4, 2011 09:01
Example usage of url2png.com automated screenshot API
' VB.NET Example
' Supplied by Thomas Kristensen
Public Shared Function url2png(ByVal UrlToSite As String) As String
Dim url2pngAPIKey As String = "API_KEY"
Dim url2pngPrivateKey As String = "PRIVATE_KEY"
Dim url As String = HttpUtility.UrlEncode(UrlToSite)
@url2png
url2png / receive.php
Created July 28, 2011 15:53
dom2png (url2png)
<?php
# =============================
# = DOM2PNG Proof of Concept =
# =============================
function url2png($url,$size,$api_key,$shared_secret)
{
@url2png
url2png / website-screenshot-timelapse.sh
Created September 15, 2011 17:40
Daily Website Screenshot for Timelapse Video
#!/usr/bin/env bash
# Daily Website Screenshot for Timelapse Video
# Add to your cronfile
# 0 1 * * * /bin/bash ~/website-screenshot-timelapse/website-screenshot-timelapse.sh > /dev/null 2>&1
@url2png
url2png / url2png-v6.php
Last active October 4, 2015 16:18
v6 Examples
<?php
function url2png_v6($url, $args) {
# Get your apikey from http://url2png.com/plans
$URL2PNG_APIKEY = "PXXXX";
$URL2PNG_SECRET = "SXXXX";
# urlencode request target
$options['url'] = urlencode($url);