GithubHelp home page GithubHelp logo

Comments (5)

majd avatar majd commented on May 22, 2024 2

I've ultimately decided to keep the CLI simple and not include yet another identifier as a command parameter. I'd suggest using one of the suggestions mentioned above.

from ipatool.

YousufSSyed avatar YousufSSyed commented on May 22, 2024 1

@majd What would be wrong with doing so, it would be a lot more convenient to just paste in the ID show in App Store URLs rather than. I don't see why that would be a problem, its not yet another, just one that would make things much easier for users. Honestly, it should've been the one to use for ipatool instead of bundle identifier?

How would you even easily get a bundle identifier? I'm just curious what made you pick it in the first place too.

from ipatool.

ryh avatar ryh commented on May 22, 2024

@majd I did try display the id in the output to table style with ANSI-Colors, But this will depend on third package SwiftyTextTable I just forked and modified, so I am not sure If I should make a PR
search git result:
none style
default style

from ipatool.

majd avatar majd commented on May 22, 2024

I'd rather not introduce a new dependency. I'm planning to revise the output format in an upcoming major version so I'll park this feature request until then.

from ipatool.

jankais3r avatar jankais3r commented on May 22, 2024

You can turn trackId into bundleId by chaining few commands like this:
echo 899247664 | awk '{print "http://itunes.apple.com/lookup?id="$1}' | xargs curl -s | python3 -c "import sys, json; print(str(json.load(sys.stdin)['results'][0]['bundleId']))"

To download the resulting bundleId it with ipatool, just add it to the end like this:
echo 899247664 | awk '{print "http://itunes.apple.com/lookup?id="$1}' | xargs curl -s | python3 -c "import sys, json; print(str(json.load(sys.stdin)['results'][0]['bundleId']))" | xargs ipatool download -b

If you want the input to be the full url, then it would be:
echo https://apps.apple.com/us/app/testflight/id899247664 | awk -F/id '{print "http://itunes.apple.com/lookup?id="$2}' | xargs curl -s | python3 -c "import sys, json; print(str(json.load(sys.stdin)['results'][0]['bundleId']))" | xargs ipatool download -b

For ultimate convenience you can create an alias:
alias ipatoolb='f() { echo $1 | awk -F/id '\''{print "http://itunes.apple.com/lookup?id="$2}'\'' | xargs curl -s | python3 -c "import sys, json; print(str(json.load(sys.stdin)[\"results\"][0][\"bundleId\"]))" | xargs ipatool download -b};f'

and call it like that ipatoolb https://apps.apple.com/us/app/testflight/id899247664

from ipatool.

Related Issues (20)

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.