DISQUS

DISQUS Hello! techniQal support is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

techniQal support

the Q stands for quality
Jump to original thread »
Author

Python File Read Write with Urllib2

Started by Daniel · 10 months ago

While checking out my great stats on Lijit recently, I started to see a pattern. I was able to determine that a large part of my Re-Search(search engine) traffic was coming from a post I did about reading and writing to files in Python back in  2005. In an effort to shamelessly attr ... Continue reading »

2 comments

  • It works! I found your site googling for a "urllib2 loop read". Thanks fro the script won't it have problems with large files?
  • Hey daonb,

    the only reason I could see an issue with large files, is if the socket connection times out.
    If you see this happening, check out the socket module. You can import it within this function, and set temporary timeout settings.

Add New Comment

Returning? Login