Top "Urllib" questions

Python module providing a high-level interface for fetching data across the World Wide Web.

Obnoxious CryptographyDeprecationWarning because of missing hmac.compare_time function everywhere

Things were running along fine until one of my projects started printing this everywhere, at the top of every execution, …

python python-requests urllib urllib3
Opening Local File Works with urllib but not with urllib2

I'm trying to open a local file using urllib2. How can I go about doing this? When I try the …

python urllib2 urllib
Python 3 urllib.request.urlopen

How can I avoid exceptions from urllib.request.urlopen if response.status_code is not 200? Now it raise URLError or …

python exception httprequest urllib python-3.4
How to catch 404 error in urllib.urlretrieve

Background: I am using urllib.urlretrieve, as opposed to any other function in the urllib* modules, because of the hook …

python http url urllib
How to save "complete webpage" not just basic html using Python

I am using following code to save webpage using Python: import urllib import sys from bs4 import BeautifulSoup url = 'http://…

python html python-2.7 urllib2 urllib
python 3, errorhandling urllib requests

from difflib import * import urllib.request,urllib.parse,urllib.error from urllib.parse import unquote import time import pdb try: …

python urllib http-error
Python 'requests' library - define specific DNS?

In my project I'm handling all HTTP requests with python requests library. Now, I need to query the http server …

python http dns urllib python-requests
"The owner of this website has banned your access based on your browser's signature" ... on a url request in a python program

When doing a simple request, on python (Entought Canopy to be precise), with urllib2, the server denies me access : data = …

javascript python cookies browser urllib
What is the global default timeout

Python 3.4 . Trying to find what is the default timeout in urllib.request.urlopen() . Its signature is: urllib.request.urlopen(url, …

python request timeout urllib
Can’t download youtube video

I’m having trouble retrieving the Youtube video automatically. Here’s the code. The problem is the last part. download = …

python file python-3.x urllib