LK_Fantasy
LK_Fantasy

Reputation: 31

Programmatically download from app store

Is it possible to download an app from Apple app store programmatically without using iTunes?

I have tried Wireshark to catch packets while downloading an app in iTunes from my iPhone. In the trace, I've got a HTTP packet which revealed the URL of the app I downloaded.

That is: http://a558.phobos.apple.com/us/r1000/049/Purple/v4/d1/8f/93/d18f931b-f90c-6830-236f-1be569e3c9ee/mzps4099439710744129538.D2.dpkg.ipa

However, when I used Wget to download from this URL, it turned out to be 403 Forbidden.

The reason why I asked for help is that there are some "smart routers" which claimed to accelerate downloading from the app store, and I want to download some apps to test the real downloading speed and verify it. However, I do not want to click every download from the iTunes. I have my own Apple account and I will only download free apps.

Upvotes: 3

Views: 1923

Answers (1)

datasunny
datasunny

Reputation: 291

Don't forget other headers like 'user-agent' and cookie:

wget --header='User-Agent: iTunes/12.1.1 (Windows; Microsoft Windows 7 x64 Business Edition Service Pack 1 (Build 7601); x64) AppleWebKit/7600.1017.9000.2' --header='Accept: /' --header='Cookie: downloadKey=expires=1426914268~access=/us/r1000/131/Purple3/v4/f8/f8/c5/f8f8c50a-90fc-f62f-af89-796bf89111c6/gbp3951770696681909972.D2.pd.ipa*~md5=11e28a91dbf5454de97148d90fce5386' 'http://a1834.phobos.apple.com/us/r1000/131/Purple3/v4/f8/f8/c5/f8f8c50a-90fc-f62f-af89-796bf89111c6/gbp3951770696681909972.D2.pd.ipa'

Upvotes: 0

Related Questions