Questions tagged [urllib3]

`urllib3` is a 3rd-party Python HTTP library with thread-safe connection pooling, file post, and more.

urllib3 is a library for python 2 and 3 providing a HTTP API with thread-safe connection pooling, file posting support, redirection handling and retries.

Documentation can be found at https://urllib3.readthedocs.io/en/latest/

760 questions
-1
votes
1 answer

How to get content of url by python (must be login in site)

I want to get content of webpage by python but it has login . so I must first login in to site then get my content. How can I do that?
user3726821
  • 123
  • 1
  • 12
-2
votes
2 answers

Convert list of String into list of URL using Python

I Have a list of string(which are actually URL) ['https://part.of.url/P2000-01.xls', 'https://part.of.url/P2001-02.xls', 'https://part.of.url/P2002-03.xls', 'https://part.of.url/P2003-04.xls', 'https://part.of.url/P2004-05.xls', …
-2
votes
1 answer

Timeout value must be int,Float or None

I was trying setting value of backoff_factor in python code using environment variable. After that i am trying to call backoff_factor from my crateDB code and it is throwing the following error: ValueError: Timeout value connect was backoff_factor,…
damini chopra
  • 133
  • 2
  • 12
-2
votes
2 answers

urllib.request 'Request' object has no attribute 'getcode' and read

I am getting error for print statement 'Request' object has no attribute 'getcode' and read sample = '[{{ "t": "{0}", "to": "{1}", "evs": "{2}", "fds": {3} }}]' response = urllib.request.Request(REST_API_URL,…
steveJ
  • 2,171
  • 3
  • 11
  • 16
-2
votes
1 answer

Get complete source code from a website generated on clicking a button

The webpage for which I want the source code contains some products. When I simply load it, it gives me only the source code of the first few products. What I need is the complete source code after clicking the Show 140-250 items which is generated…
Prashanth
  • 183
  • 6
  • 15
-3
votes
1 answer

Do we need to import the requests lib to use requests if we have already imported urllib and urllib3? - urllibx, request confusion

I need to use 'requests' and a function from urllib3. In the code you can see the requests library is being imported, but at the same time it is a module/package inside urllib3, which has already been imported too. Doing some research I've found…
Martin
  • 414
  • 7
  • 21
-3
votes
1 answer

How to encode whitespaces as '+' in the url using urllib3?

I'm using urllib3 on Python 2.7. I need to send a request to a website that gives the desired response only when the spaces are separated by '+' and not by '%2b'. http = urllib3.PoolManager() var = 'foo bar' url = 'https://foo.com/release?q=' +…
hitro
  • 5
  • 2
-4
votes
1 answer

Convert Code from 2.7 to 3.5

I'm very new to learning python, and was wondering if someone could convert a previously answered question so that it would work in Python 3.5. I would like to get the exact same info as the original question. Cannot get table data - HTML Thanks in…
-5
votes
2 answers

IndexError: list index out of range [Python 3.x Web scraping]

I am trying to grab geo locations using URLs from a csv by searching the twitter, tweets urls. The input file has more than 100K rows with bunch of columns. I am using python 3.x anaconda with all the updated version and I am getting following…
1 2 3
50
51