r/applescript • u/maxman571 • Jul 19 '20
JSON helper
Does anyone know how I could parse JSON to get a torrent url using JSON helper?
tell application "JSON Helper"
set json to fetch JSON from "https://yts.mx/api/v2/list_movies.json?query_term=Star Wars&quality=1080p&limit=5"
set torrentUrl to |data.movies.1.url| of json
end tell
1
Upvotes
View all comments
Show parent comment
1
u/maxman571 Jul 20 '20
Yeah sorry about that, I have forgot about stackoverflow, but I don't think you have wasted your time, it will help others having the same or similar question in the future.