We need a script written that will download a given iOS app from the App Store.
This project will involve writing a scraper that fakes the iTunes login based on a username/password from a config file, then purchasing the specific app and downloading the .ipa file.
Note that this is not a massive bot for falsly inflating iOS app downloads, the download apps will be used for analysis and data mining.
We're comfortable with your script being written in bash, python, perl, php, ruby or java.
You will need to use your own iTunes account for this project, but do not need to test with paid apps - just free apps are fine.
Please let me know if you have any questions.
We look forward to working with you!
The script will be run on the command line, and should accept four arguments.
It will be run something like this:
./downloadApp 544007664 --username="name@[url removed, login to view]" --password="pass123" --downloaddirectory="/"
I spent a bit of time analyzing the requests made to Apple using a proxy tool to understand the work involved in the project. I would expect you do your own research to verify, but as far as I can tell, there are three main steps associated with this project:
1) Take the provided iTunes username and password, and create a login session with the information, capturing the cookies and authentication parameters from the body and headers. I believe this involves making a call to a url resembling "[url removed, login to view]"
2) Use the cookies and other authentication details to purchase the app from Apple - even free apps must be purchased. Capture the download link that is provided in the response to this call. I believe this involves making a call to a url resembling "[url removed, login to view]"
3) Use the download link provided by the provided and download it to a folder, I believe the url will resemble something like "[url removed, login to view]"