get pcm data from file node code example

Example 1: how to download file from python

import wget

url = "https://www.python.org/static/img/[email protected]"

wget.download(url, 'c:/users/LikeGeeks/downloads/pythonLogo.png')

Example 2: python download and read csv from url

import csv
import requests

CSV_URL = 'http://samplecsvs.s3.amazonaws.com/Sacramentorealestatetransactions.csv'

with requests.Session() as s:
    download = s.get(CSV_URL)

    decoded_content = download.content.decode('utf-8')

    cr = csv.reader(decoded_content.splitlines(), delimiter=',')
    my_list = list(cr)
    for row in my_list:
        print(row)

Example 3: how to read a json resposnse from a link in python

import urllib, json

url = "put url here"
response = urllib.request.urlopen(url)
data = json.loads(response.read())
print (data)