Linked Questions
17 questions linked to/from Python Request Post with param data
1
vote
3
answers
8k
views
How to pass variable into post request in Python [duplicate]
I had created a simple python program to send Post Api request using request module
# importing the requests library
import requests
import json
headers = {
'PRIVATE-TOKEN': 'XXXXXXXXXXXXX',
...
3
votes
2
answers
13k
views
How do I post curl command as a python request?
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --header "Content-Type: application/json" \
--data '{"path": "<subgroup_path>", "name": "<subgroup_name>", "...
0
votes
2
answers
2k
views
How to scrape data from html table in python
<tr class="even">
<td><strong><a href='../eagleweb/viewDoc.jsp?node=DOC186S8881'>DEED<br/>
2016002023</a></strong></td>
<td><a href='../...
0
votes
1
answer
2k
views
Python POST request with Nested Dictionary values/args
Already looked at here, here and here but still having issues.
I have a POST data that looks like this:
{
"config":{
"param1": "param1 value",
...
1
vote
0
answers
3k
views
Mouser API with Python
For some time i have been trying to connect with Mouser API. I have already tried to use requests library as well as urllib.
For the request without parameter such as getting the manufacturer list it ...
1
vote
1
answer
2k
views
How to pass a parameter to the payload in a URL request (python)
(https://i.sstatic.net/xgoMx.jpg)
I want to be able to pass a variable through to where the registration plate (AA19AAA) is
Overall, I want a function to check the number plate, therefore I need to ...
0
votes
0
answers
1k
views
Python 'requests' hide params (in post)
I am using the python Requests libary: http://docs.python-requests.org/en/latest/ (inside my pyramid web application).
I can post data to a url, with params in the url, however I cannot seem to pass ...
0
votes
1
answer
550
views
Microsoft Face API complaining about bad Key, but Key working in console?
I been trying to solve this error but I can't find what seems to be wrong.
I am using Microsoft Cognitive Services Face API with python. Here is my code:
import requests
import json
import http....
0
votes
1
answer
989
views
Pinterst api: not able to get access token - Stuck in Oauth flow
Using v5 of the pinterest api and stuck on the authentication flow: https://developers.pinterest.com/docs/getting-started/authentication/
Completed the first step and got the access code.
However, I ...
1
vote
0
answers
1k
views
Python requests: response.request.body property is null after a POST
I am trying to debug a POST request which returns 400 using requests library.
The request is of type:
POST https://somesite.com/path?key=value
{
"some": "payload"
}
So it has ...
1
vote
1
answer
649
views
How to Convert this Curl to Python requests
Curl command
curl --user "github" --request POST --data '{"description":"Created via API","public":"true","files":{"587":{"content":"...
0
votes
1
answer
632
views
Setting PHP $_POST from Python [duplicate]
I would like to interact with a website written in PHP using Python. It pulls its data from a form with method `POST`.
Now I have tried to set the values in `$_POST` by doing:
url = 'https://www....
1
vote
0
answers
532
views
Http POST (multipart/form-data) via Python requests failed
I am using Pythong requests lib to retrieve data from New Zealand Statistics website:
http://www.stats.govt.nz/infoshare/ExportDirect.aspx.
The http POST request is in format of "multipart/form-data". ...
0
votes
1
answer
313
views
How to upload file using Requests
I can use Selenium to upload a file as
from selenium import webdriver
driver = webdriver.Chrome()
driver.get(r'https://www.example.com')
a = driver.find_element_by_xpath("//input[@type='file']")
a....
0
votes
1
answer
255
views
How can I get the data from an API using Python Request Post?
I'm trying to retrive some data from apptopia but I'm finding it pretty tricky (due to my lack of experience). In their authentication page: https://dev.apptopia.com/#authentication there are some ...