DISQUS

techniQal support: Python File Read Write with Urllib2

  • daonb · 1 year ago
    It works! I found your site googling for a "urllib2 loop read". Thanks fro the script won't it have problems with large files?
  • Daniel · 1 year ago
    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.