generate functionFri, 17 Feb 2023

script to download all urls from file https://ceditor.setka.io/clients/v8oYJ0xtu9x8m6HI9J_nvoC4nI8BkSKE/css/253_the_village_moscow_1_1343.min.css

require 'open-uri' File.readlines("urls.txt").each do |url| content = open("https://ceditor.setka.io/clients/v8oYJ0xtu9x8m6HI9J_nvoC4nI8BkSKE/css/253_the_village_moscow_1_1343.min.css").read File.open("downloaded/[url]", "w") { |file| file.write(content) } end

Questions about programming?Chat with your personal AI assistant