I'm new on shopify app.
I've performed a bulk operation and got back the jsonl file url from storage.googleapis. How can I download and parse data from the url programmatically?
Solved! Go to the solution
This is an accepted solution.
You are given an URL. You can use any scripting language to open the file and parse it. As an example, in Ruby, it is this simple:
require 'open-uri' # a library that allows you to open URL download_url = "https://thecrazylongjsonurlwhereshopifyputallyourdata" open(download_url) do |line| data_line = JSON.parse(line) # so a line is a string, and JSON is a string, so we parse that string, and get back JSON, so we can programmatically deal with our data. end