Skip to main content

Using Python 3 with Import.io

 Dependencies

pip3 install requests pandas

 

  1. Go to the Integrate tab for your Import.io extractor
  2. Copy the CSV from the last successful run endpoint
  3. Replace the endpoint into the below with the CSV endpoint
import requests  
import pandas as pd
import io

API_ENDPOINT = ''

session = requests.Session()
response = session.get(url=API_ENDPOINT).content

df = pd.read_csv(io.StringIO(response.decode('utf-8-sig')))

print(df.head())