Python Forum
(solved) Downnload images from a server and rename
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(solved) Downnload images from a server and rename
#11
Quote: I don't understand why I can't save directly the files with the right name.

Of course you can, but I am lazy!

split the url on / to get the old name, split the old name on . to get the extension, then join the extension to the new name!

Fini!
Reply
#12
@snippsat It worked fine ! The 12068 images are now at home. Thanks a lot.
Reply
#13
Thanks for your help.
Reply
#14
This worked fin. All 12068 images are at home...

Thank you Snippsat.
Thank you all.
snippsat likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question [SOLVED] Tiny web server as standalone executable? Winfried 0 497 Feb-09-2024, 11:48 AM
Last Post: Winfried
  Sending random images via smtplib [SOLVED] AlphaInc 0 1,777 Oct-19-2021, 10:10 AM
Last Post: AlphaInc
  How to take the tar backup files form remote server to local server sivareddy 0 2,040 Jul-14-2021, 01:32 PM
Last Post: sivareddy
  Download multiple images and rename them andie31 4 5,321 Sep-13-2018, 10:26 AM
Last Post: andie31

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020