Skip to content

Instantly share code, notes, and snippets.

View raphaelz's full-sized avatar

Raphael raphaelz

View GitHub Profile
@raphaelz
raphaelz / grab-screenshots.php
Created April 22, 2015 18:26
Grab Apple Watch screenshots for apps using iTunes URL. Inspired by @stroughtonsmith
<?php
$screenshots = array();
$url = 'https://itunes.apple.com/us/app/citymapper-ultimate-real-time/id469463298?mt=8';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, "AppleWatchStore/1 CFNetwork/720.2.4 Darwin/14.1.0 (x86_64)");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-Apple-Store-Front: 143441-1,20'));
curl_setopt($ch, CURLOPT_TIMEOUT, 0);