Git Product home page Git Product logo

adc-download's Introduction

adc-download

A script to perform resumable downloads from the Apple Developer Center

Safari's resume facility is just awful -- it'll randomly restart downloads from the beginning, clobbering anything that's already been downloaded, and the resume button will frequently disappear entirely and mysteriously from the downloads window. And if the session has expired, it'll cause all kinds of havoc.

Anyone downloading the gazillion-gb iOS/Mac SDK + XCode on a slow and/or expensive connection will know the sheer fisticuffs-inspiring irritation this creates -- speaking personally, living on a mobile broadband connection that's usually changed at £3 per gig and often runs about as fast as I could send the data via carrier pigeon, this usually makes me want to storm Cupertino with a pitchfork.

Thus, this script.

It'll ask for your Apple ID and password, and store it in the keychain for you, and it'll resume from the current working directory.

Chuck it somewhere like /usr/local/bin, make sure it's executable (chmod +x /usr/local/bin/adc_download.sh) and call it from Terminal like:

adc_download.sh https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4_gm_seed/xcode_4_gm_seed_.dmg

If you've already started the download in Safari, just grab the partially-downloaded file from within the .download package Safari creates.

Resuming ADC downloads (‘cos Safari sucks)

adc-download's People

Contributors

cbowns avatar michaeltyson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adc-download's Issues

Support aria2c, wget instead of curl

Either one of these should be faster (and more flexible) than curl. Especially on slow connections.

(I'm going to fork and take a stab at implementing this. If you see no activity from me, though, feel free to add it yourself ;)

adc_download broken for new Apple ID auth page

The current Apple ID login page appears to have broken adc_download.

The page looks like:

screen shot 2014-07-08 at 2 44 00 pm

It looks like adc_download is trying to find a wosid object in the page, but fails to:

(output is from running with -e -x)

… html from web page…
</html> =~ name="wosid" value="([^"]+)" ]]
+ '[' '!' 'https://daw.apple.com/authenticate;jsessionid=<JSessionID>' ']'
+ curl -s -c /tmp/adccookies.txt -L -F theAccountName=appleid -F theAccountPW=password -F 1.Continue=1 -F theAuxValue= -F wosid= 'https://daw.apple.com/authenticate;jsessionid=<JSessionID>' -o /dev/null

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.