Skip to content Skip to sidebar Skip to footer
Showing posts with the label Urllib2

Does Urllib2 Support Preemptive Authentication Authentication?

I am trying access a REST API. I can get it working in Curl/REST Client (the UI tool), with preempt… Read more Does Urllib2 Support Preemptive Authentication Authentication?

Gaierror: [errno -2] Name Or Service Not Known

def make_req(data, url, method='POST') params = urllib.urlencode(data) headers = … Read more Gaierror: [errno -2] Name Or Service Not Known

Python - Example Of Urllib2 Asynchronous / Threaded Request Using Https

I'm having a heck of a time getting asynchronous / threaded HTTPS requests to work using Python… Read more Python - Example Of Urllib2 Asynchronous / Threaded Request Using Https

Python Urllib Simple Login Script

I am trying to make a script to login into my 'check card balance' service for my universit… Read more Python Urllib Simple Login Script

Python Urllib2 Can Open Localhost But Not 127.0.0.1

I am using python urllib2 library and can see a strange and nasty problem. Windows 7. My code: impo… Read more Python Urllib2 Can Open Localhost But Not 127.0.0.1

Pin Down Exact Content Location In Html For Web Scraping Urllib2 Beautiful Soup

I'm new to web scraping, have little exposure to html file systems and wanted to know if there … Read more Pin Down Exact Content Location In Html For Web Scraping Urllib2 Beautiful Soup

Which Is Best In Python: Urllib2, Pycurl Or Mechanize?

Ok so I need to download some web pages using Python and did a quick investigation of my options. I… Read more Which Is Best In Python: Urllib2, Pycurl Or Mechanize?

How To Fix Python, Urlopen Error [errno 8], Using Eventlet Green

Python novice here. I'm making a lot of asynchronous http requests using eventlet and urllib2. … Read more How To Fix Python, Urlopen Error [errno 8], Using Eventlet Green

Python Rest / Teamcity Backup

I am trying to develop a python script to run REST backup procedure as shown in http://confluence.j… Read more Python Rest / Teamcity Backup

Why Am I Getting This Error? Http Error 407: Proxy Authentication Required

I am using the following code found on post, How to specify an authenticated proxy for a python htt… Read more Why Am I Getting This Error? Http Error 407: Proxy Authentication Required

How To Follow A Redirect With Urllib?

I'm creating a script in Python 3 which access a page like: example.com/daora/zz.asp?x=qqrzzt… Read more How To Follow A Redirect With Urllib?

`no Module Named 'urllib2' - How Do I Use It In Python So I Can Make A Request

Python newbie and just not sure what to do for python I want to use urllib2 - Request to make a cal… Read more `no Module Named 'urllib2' - How Do I Use It In Python So I Can Make A Request

Twitter Stream Using Oauth In Python Behaving Differently On Two Equally Configured Machines

I have the same piece of coding to deal with Twitter User Stream running on two different machines.… Read more Twitter Stream Using Oauth In Python Behaving Differently On Two Equally Configured Machines

Python 2.7 Urllib2 Raising Urllib2.httperror 301 When Hitting Redirect With Xml Content

I'm using urllib2 to request a particular S3 bucket at hxxp://s3.amazonaws.com/mybucket. Amazo… Read more Python 2.7 Urllib2 Raising Urllib2.httperror 301 When Hitting Redirect With Xml Content

Urllib2 Connection Timed Out Error

I am trying to open a page using urllib2 but i keep getting connection timed out errors. The line w… Read more Urllib2 Connection Timed Out Error

Trying To Access The Internet Using Urllib2 In Python

I'm trying to write a program that will (among other things) get text or source code from a pre… Read more Trying To Access The Internet Using Urllib2 In Python

Https Request Via Urllib2 Fails Behind Ntlm Proxy

Via Python's urllib2 I try to get data over HTTPS while I am behind a corporate NTLM proxy. I r… Read more Https Request Via Urllib2 Fails Behind Ntlm Proxy

Gevent / Requests Hangs While Making Lots Of Head Requests

I need to make 100k head requests, and I'm using gevent on top of requests. My code runs for a … Read more Gevent / Requests Hangs While Making Lots Of Head Requests

Downloading A File In Python

import urllib2, sys if len(sys.argv) !=3: print 'Usage: download.py ' … Read more Downloading A File In Python

Python 2.7 Urllib2 Raising Urllib2.HTTPError 301 When Hitting Redirect With Xml Content

I'm using urllib2 to request a particular S3 bucket at hxxp://s3.amazonaws.com/mybucket. Amazo… Read more Python 2.7 Urllib2 Raising Urllib2.HTTPError 301 When Hitting Redirect With Xml Content