Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "json"
- require "open-uri"
- @hash
- @video_url_list = []
- File.open("youtube-list.json") do |j|
- @hash = JSON.load(j)
- end
- File.open("download_url.txt", "wb") do |f|
- @hash.each do |list|
- f.puts(list["video_url"])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement