Answers for "how do i take curl response in python and turn into a list"

8

Curl in python

import requests

headers = {
    'Content-type': 'application/json',
}

data = '{"text":"Hello, World!"}'

response = requests.post('https://hooks.slack.com/services/asdfasdfasdf', headers=headers, data=data)
Posted by: Guest on June-05-2020
0

executing curl commands in python

import requests
r = requests.get('https://github.com/timeline.json')
r.json()
Posted by: Guest on December-09-2020

Code answers related to "how do i take curl response in python and turn into a list"

Python Answers by Framework

Browse Popular Code Answers by Language