Guest User

old family mart py script

a guest
Mar 18th, 2025
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import requests
  2.  
  3. base_url = "https://fp.famima.com/wp-content/images/VSRA117"
  4. start_num = 179 # Starting number
  5. end_num = 200 # Ending number
  6.  
  7. for i in range(start_num, end_num + 1):
  8. img_url = f"{base_url}{i:03}.jpg"
  9. img_data = requests.get(img_url).content
  10. with open(f"VSRA117{i:03}.jpg", 'wb') as handler:
  11. handler.write(img_data)
  12. print(f"Downloaded {img_url}")
  13.  
  14. print("All images downloaded.")
  15.  
Advertisement
Add Comment
Please, Sign In to add comment