I've node app in Meteor.js and short python script using Pafy.
import pafy
url = https://www.youtube.com/watch?v=AVQpGI6Tq0o
video = pafy.new(url)
allstreams = video.allstreams
for s in allstreams:
print(s.mediatype, s.extension, s.quality, s.get_filesize(), s.url)
What's the most effective way of connecting them so python script get url from node.js app and return back output to node.js? Would it be better to code it all in Python instead of Meteor.js?