Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

urllib2

Python urllib2 with keep alive

August 16, 2022 by Magenaut

How can I make a “keep alive” HTTP request using Python’s urllib2?

Categories Python, Q&A Tags http, keep-alive, python, urllib2 Leave a comment

urllib2 read to Unicode

August 16, 2022 by Magenaut

I need to store the content of a site that can be in any language. And I need to be able to search the content for a Unicode string.

Categories Python, Q&A Tags python, unicode, urllib2 Leave a comment

Source interface with Python and urllib2

August 15, 2022 by Magenaut

How do i set the source IP/interface with Python and urllib2?

Categories Python, Q&A Tags python, urllib2 Leave a comment

python ignore certificate validation urllib2

August 15, 2022 by Magenaut

I want to ignore the certification validation during my request to the server with an internal corporate link.

Categories Python, Q&A Tags python, python-2.7, python-requests, urllib2 Leave a comment

Login to website using urllib2 – Python 2.7

August 14, 2022 by Magenaut

Okay, so I am using this for a reddit bot, but I want to be able to figure out HOW to log in to any website.
If that makes sense….

Categories Python, Q&A Tags login, python, python-2.7, urllib2 Leave a comment

Are urllib2 and httplib thread safe?

August 14, 2022 by Magenaut

I’m looking for information on thread safety of urllib2 and httplib.
The official documentation (http://docs.python.org/library/urllib2.html and http://docs.python.org/library/httplib.html) lacks any information on this subject; the word thread is not even mentioned there…

Categories Python, Q&A Tags httplib, python, thread-safety, urllib2 Leave a comment

Handling urllib2’s timeout? – Python

August 14, 2022 by Magenaut

I’m using the timeout parameter within the urllib2’s urlopen.

Categories Python, Q&A Tags python, timeout, urllib, urllib2 Leave a comment

Python urllib2 Progress Hook

August 13, 2022 by Magenaut

I am trying to create a download progress bar in python using the urllib2 http client. I’ve looked through the API (and on google) and it seems that urllib2 does not allow you to register progress hooks. However the older deprecated urllib does have this functionality.

Categories Python, Q&A Tags http, httpclient, progress-bar, python, urllib2 Leave a comment

Making HTTP HEAD request with urllib2 from Python 2

August 13, 2022 by Magenaut

I’m trying to do a HEAD request of a page using Python 2.

Categories Python, Q&A Tags head, python, python-2.7, urllib2 Leave a comment

Python urllib2.urlopen() is slow, need a better way to read several urls

August 13, 2022 by Magenaut

As the title suggests, I’m working on a site written in python and it makes several calls to the urllib2 module to read websites. I then parse them with BeautifulSoup.

Categories Python, Q&A Tags concurrency, http, python, urllib2 Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress