Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

API curl python pandas

import json
import requests
import pandas as pd

response = requests.get("https://www.receitaws.com.br/v1/cnpj/27865757000102")
data = json.loads(response.content.decode(response.encoding))
df = pd.DataFrame([data])
Comment

API curl python pandas


import subprocess
import json
import pandas as pd

proc = subprocess.run(["curl",  "-X", "GET",  
                  "https://www.receitaws.com.br/v1/cnpj/27865757000102"],
                   stdout=subprocess.PIPE, encoding='utf-8')

cadastro = proc.stdout
df = pd.DataFrame([json.loads(cadastro)])

Comment

PREVIOUS NEXT
Code Example
Python :: add label to colorbar 
Python :: python is scripting language or programming language 
Python :: every cell change comma to point pandas 
Python :: plotly scatter facet change labels 
Python :: Python Print Variable Using the string formatting with positional arguments {} 
Python :: modules in python 
Python :: how to remove new line in python 
Python :: python script for downloading files from googledrive 
Python :: append two 1d arrays python 
Python :: python check if attribute exists in dictionary 
Python :: python open aspx file 
Python :: for loop to select rows in pandas 
Python :: os.path.dirname(__file__) 
Python :: time python 
Python :: automatic regex generator python 
Python :: python data insert 
Python :: Python Program to Find HCF or GCD 
Python :: An example of how to associate a color to each bar and plot a color bar 
Python :: python unicode function 
Python :: Python Difference between two timedelta objects 
Python :: path selecter in tkinter 
Python :: scikit learn decision tree 
Python :: get value of bit in integer python 
Python :: get the first element that is larger than 
Python :: object function in python 
Python :: run django server on any network address of the system 
Python :: viewset and router 
Python :: leer fichero de texto con columnas como diccionario python 
Python :: how to python string up 
Python :: python docs 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =