Given the ID of a Chrome extension, what's the URL to download it using curl?
Asked
Active
Viewed 3,317 times
2
-
1Related: [How to download a CRX file from the Chrome web store for a given ID?](http://stackoverflow.com/a/14099762/938089) (the answer shows a method using `wget` though) – Rob W Oct 29 '13 at 22:20
-
@RobW - good find. The main issue is being able to hit the right URL from the command line; which command is used is no big deal. – Nathan Long Oct 30 '13 at 12:07
1 Answers
3
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
.

sdgfsdh
- 33,689
- 26
- 132
- 245

Nathan Long
- 122,748
- 97
- 336
- 451