Questions tagged [treq]

treq is a Python HTTP client library with Requests-like interface for use with the Twisted framework

3 questions
1
vote
0 answers

Multipart POST works with Python requests but not treq inside Crawler

I have a crawler that takes pdf files and I want to integrate with a service that generate the OCR text from those PDF files. I can make it work with requests but not with treq. All examples are from scrapy shell. This works, returning the correct…
R3_
  • 46
  • 4
1
vote
1 answer

How do I get the response text from a treq request?

I am trying to get started with some example code of the treq library, to little avail. While it is easy to get the status code and a few other properties of the response to the request, getting the actual text of the response is a little more…
1
vote
2 answers

Script can't make POST request

I have the following script: from twisted.internet import reactor import time,hashlib,urllib2,json,treq from urllib import urlencode #This is used to print out the Password that is found. This is called at the # end of each loop. And checks if…
JamesRicky
  • 201
  • 1
  • 3
  • 17