Access the Mac App Store Online Through Your Web Browser

Last evening, I was engrossed in creating a scraper for the Mac App Store. During this process, I stumbled upon a method to navigate the store using Safari.

Here’s how you can do it too.

Interestingly, it’s possible to manipulate curl commands by using the Mac App Store’s user agent to fetch its data. This requires using Terminal.

If you’re not familiar with command-line interfaces, you might want to skip this part.

If you’re still with me, let’s dive in.

To start, access the New & Noteworthy page by entering 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/viewGrouping?id=29526&mt=12’ > ~/Desktop/foo.html; open ~/Desktop/foo.html

Alternatively, you can directly open the front page:
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/us/genre/mac/id39?mt=12’ > ~/Desktop/foo.html; open ~/Desktop/foo.html

Occasionally, the front page may not load correctly initially, but opening a primary page like New & Noteworthy usually resolves this issue.

While some users might overlook the HTTP status displayed at the top of the webpage, most will likely be using the App itself, which should pose no issue for others. Enjoy exploring!

.
Share This Article
Victor

Larry is a dedicated writer for TUAW, bringing a wealth of knowledge and enthusiasm to the Apple news community. With a keen eye for detail, Larry covers everything from the latest iPhone releases to in-depth reviews of the MacBook Pro and Apple Watch. His insightful articles help readers stay informed about the ever-evolving world of Apple products. Larry’s commitment to delivering accurate and engaging content makes him a valued member of the TUAW team.