14.07.2011 22:05 Uhr, Quelle: The Unofficial Apple Weblog

Open the Mac App Store in your browser

I was up late last night building a Mac App Store scraper. In the process I discovered how to browse the store in Safari. Without further ado, let me share the geek. It turns out you can spoof curl with the Mac App Store user agent to access its data. You'll need to use Terminal for this trick, so if you're uncomfortable with the command line, it's sort of time to skip to the next post. Still here? Good, let's go. First, grab and open New & Noteworthy page with the following commands: curl -silent -A "iMacAppStore/1.0.1 (Macintosh; U; Intel Mac OS X 10.6.7; en) AppleWebKit/533.20.25" 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/view

Weiterlesen bei The Unofficial Apple Weblog

Digg del.icio.us Facebook email MySpace Technorati Twitter

JustMac.info © Thomas Lohner - Impressum - Datenschutz