K
K
kambulovd2019-11-25 18:07:05
Java
kambulovd, 2019-11-25 18:07:05

How to bulk download images by URL?

Hello. I have such a piece from a json file.

{"_id": {"$oid": "5ddbeeb9634a813c8aa11895"}, "sammy": {"username": "SammyShark", "location": "Indian Ocean", "online": true, "followers": {"$numberInt": "987"}, "URL": "https://sun9-39.userapi.com/c849136/v849136007/b06d7/FMpHASyDw_Y.jpg"}, "jesse": {"username": "JesseOctopus", "location": "Pacific Ocean", "online": false, "followers": {"$numberInt": "432"}, "URL": "https://sun9-54.userapi.com/c840135/v840135773/81a5b/qYc113XTDfc.jpg"}, "drew": {"username": "DrewSquid", "location": "Atlantic Ocean", "online": false, "followers": {"$numberInt": "321"}, "URL": "https://sun9-28.userapi.com/c854028/v854028835/a808b/GnC8IftSc90.jpg"}}

I need help downloading photos from these links. The Internet is full of examples where one photo is downloaded from one link. But there is no way to do this for a set and select links from a json file. I would be grateful for examples. I've been scratching my head all day, I don't know what to do

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2019-11-25
@pfg21

if it's a one-time thing, it's easier to use regexps in your favorite text editor to convert it into a set of downloads via wget/curl and send it to bash.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question