Aug 26, 2019 06:12 PM
Is there a way to do a mass download of photos from my airtable? The Bulk Upload worked well, now I need to do the reverse! Thanks, All
Mar 23, 2021 05:22 PM
LOL - And he didn’t use any code despite the fact that only he and only three other people on the planet can read it! That’s both the beauty and the irony of his bulk download approach.
@ScottWorld you need to retract the FYI and buy this clever dude a sandwich.
Mar 23, 2021 05:28 PM
Lol, it still didn’t work!
Mar 23, 2021 05:31 PM
I think you have some bad characters in the command line.
wget </users
is not right
Mar 23, 2021 05:34 PM
That’s the full path to my file. It’s the same path that made step #1 work properly.
I really don’t care. I was just seeing how far I could get in those directions.
Mar 23, 2021 05:35 PM
I’ve never seen a path in Linux that begins with “<”.
Mar 23, 2021 05:40 PM
I just copied & pasted what the other guy wrote above. He has the “<” in his message above.
Anyways, I’m unsubscribing from this thread now. This is so unimportant, and I have REAL Airtable work to do. :winking_face:
Mar 23, 2021 07:23 PM
I think there’s supposed to be a space after each “<”. His example doesn’t include one before the filename, but I think that’s a typo. Try:
xargs < wget < [insert path here]
That doesn’t solve the “No such file or directory” issue, though.
Mar 30, 2021 07:06 AM
This is why I think that most people’s idea of what is and isn’t “code” is too narrow.
May 23, 2021 10:22 PM
Sorry about that, I’m not here often, and I didn’t realize this was a no-code community. Or perhaps the degree to which it is.
I’ve mostly been browsing in the Airtable automations/scripting area of this community, where most people seem to have a JS background.
May 23, 2021 10:30 PM
Sorry about that. I didn’t realize this was a no-code area.
I’m sure it’s moot now, but I had a typo. It should be xargs wget < sources.txt
.
In your case, xargs wget < ~/Desktop/sources.txt
You’d also need wget
if you don’t have it. I forget if it’s native on MacOS (brew install wget
).
Anyway, apologies again for the confusion and technical approach.
May 23, 2021 10:37 PM
In my case I didn’t know that code is avoided here (I’ll go so far as to say, seemingly kind of taboo) at all. I found this thread through a search, and I had been to the Airtable Automations category before, where Airtable scripts seem to be openly discussed.
I do consider a couple of shell commands to be on the low-code side personally, but of course experiences vary.
May 24, 2021 05:37 AM
Oh, thank you very much for sharing your experiences, and for coming back and posting the correction. I’m sorry you did not feel welcome, and I hope that you will stick around.
Many Airtable users are no-code users, but certainly not all. In fact there are several people on these forums who enjoy code. Also, to be fair, the idea of your approach being “no code” was introduced by a different poster.
My comment was mostly to point out that the distinction between “code” and “no code” sometimes is an artificial one, depending on the point of view. The poster who called your shell commands “no code” is a highly experienced coder who writes code in text format, so two shell commands are not code to him. On the other hand, the poster who compared you shell commands to Unix considers himself a no-code user, even though he actually does write code, just not text based code.
Hard distinctions between code and no-code exist because no-coders are often afraid of code. However, the reality is that there is a huge gray area between code and no-code, and solutions like yours can help bridge the gap.
I think the emotions in this thread stem from the fact that the tone of your initial post says that you solution was quick and easy, but it was not quick and easy for the non-coder who tried it.
Jun 02, 2021 04:06 PM
wget is not natively available in MacOS terminal, this command however is:
xargs -n 1 curl -O < sources.txt
Jul 12, 2021 07:01 PM
This is brilliant and so helpful. The problem some fellow Mac users were experiencing is that wget is not installed by default on MacOS.
Aug 22, 2021 02:15 AM
It will NOT work for multiple attachments in field.
With Copy column you get only first attachment url in every row.
regards
Mar 31, 2022 03:59 AM
Thanks, i like to see any solution without constraints. Thanks for your ideas and time for sharing.
May 03, 2022 03:24 AM
This is awesome, thank you. Indeed it should be xargs wget < sources.txt
and if wget is not available on the mac a simple brew install wget
works as you mentioned.
Maybe for it can also be helpful to remind ppl to save it as .txt and not as .rtf as it might add some extra formatting text on the file which will cause the download to fail.
May 03, 2022 04:05 AM
It does not work because the sed
is not accounting for the multiple links in one cell separated by a comma. Therefore it only gets the last link inside the parentheses.
In order to correct that I would first run sed to replace all commas with new lines like this:
sed -i "" 's/,/\'$'\n''/g' sources.txt
And then run the sed to get all the links inside parentheses like Orun has done:
sed -i "" "s/.*(\(.*\))/\1/" sources.txt
And then you can run the download command:
xargs wget < sources.txt
This should work to download all the files in the same cell.
May 03, 2022 09:59 AM
The On2Air Backups can backup all your Airtable data, including attachments, to Google Drive, Dropbox, or Box
You can also check out The Essential Guide to Backups in Airtable