Reputation: 125942
Given the ID of a Chrome extension, what's the URL to download it using curl?
Upvotes: 3
Views: 3915
Reputation: 125942
This works for me.
ID=lkajd9lk32093lkdd93lkd # replace with target extension's id in the store
URL="https://clients2.google.com/service/update2/crx?response=redirect&x=id%3D$ID%26uc"
# -L to handle any redirects
curl -L "$URL" > some_file.crx
Note that the .crx
file can be unpacked with unzip
.
Upvotes: 4