• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(807)  |  Call(746)  |  Derive(0)  |  Import(61)
No Document.

        def urlretrieve(url, filename=None, reporthook=None, data=None):
    global _urlopener
    if not _urlopener:
        _urlopener = FancyURLopener()
    return _urlopener.retrieve(url, filename, reporthook, data)
        


src/p/y/PyMT-0.5.1/pymt/tools/packaging/win32/build.py   PyMT(Download)
import os, sys, shutil
import zipfile
from zipfile import ZipFile
from urllib import urlretrieve
from subprocess import Popen, PIPE
from distutils.cmd import Command
 
            p = block_count*block_size*100.0/total_size
            print "\b\b\b\b\b\b\b\b\b", "%06.2f"%p +"%",
        print " Progress: 000.00%",
        urlretrieve(self.deps_url, #location of binary dependencioes needed for portable pymt
                    os.path.join(self.build_dir,'deps.zip'), #tmp file to store teh archive
                    reporthook=report_hook)
        print " [Done]"

src/p/y/PyMT-0.5.1/pymt/tools/packaging/osx/build.py   PyMT(Download)
import os, sys, shutil, shlex, re
from urllib import urlretrieve
from subprocess import Popen, PIPE
from distutils.cmd import Command
 
 
 
            p = block_count*block_size*100.0/total_size
            print "\b\b\b\b\b\b\b\b\b", "%06.2f"%p +"%",
        print " Progress: 000.00%",
        urlretrieve(self.deps_url, #location of binary dependencioes needed for portable pymt
                    os.path.join(self.build_dir,'deps.zip'), #tmp file to store teh archive
                    reporthook=report_hook)
        print " [Done]"

src/g/w/gwdrawfonttool-HEAD/trunk/src/ui/dbassistant/__init__.py   gwdrawfonttool(Download)
from gtk import gdk
import gobject
 
from urllib import urlretrieve
from urllib2 import urlopen, URLError
import tarfile
 
            self.pages["progress"].set_status("download")
            try:
                callback = self.pages["progress"].progress_bar_download
                filename, info = urlretrieve(self.url, reporthook=callback)
                fh = open(filename, 'rb')
            except IOError, e:
                self._end_with_failure(e)

src/g/w/gwdrawfonttool-HEAD/src/ui/dbassistant/__init__.py   gwdrawfonttool(Download)
from gtk import gdk
import gobject
 
from urllib import urlretrieve
from urllib2 import urlopen, URLError
import tarfile
 
            self.pages["progress"].set_status("download")
            try:
                callback = self.pages["progress"].progress_bar_download
                filename, info = urlretrieve(self.url, reporthook=callback)
                fh = open(filename, 'rb')
            except IOError, e:
                self._end_with_failure(e)

src/c/o/continuouscity-HEAD/cctools/getvideos/getvideos.py   continuouscity(Download)
import subprocess
import simplejson
from sys import exit
from urllib import urlopen, urlretrieve
 
API = 'http://xubu.cc/api/json/performances/'
STREAMS = 'http://xubu.s3.amazonaws.com/streams/'
            progress.total_files += 1
            progress.total_bytes += int(urlopen(url).info()['Content-Length'])
    for url, filename in new:
        urlretrieve(url, filename, progress.update)
        progress.downloaded_file()
    progress.close()
    message('Finished downloading', 

src/p/y/pycogent-HEAD/trunk/cogent/db/util.py   pycogent(Download)
#!/usr/bin/env python
"""Retrieve information from web databases.
"""
from urllib import urlopen, urlretrieve, quote_plus
 
__author__ = "Rob Knight"
__copyright__ = "Copyright 2007-2011, The Cogent Project"
    def retrieve(self, fname, **kwargs):
        """Gets URL and writes to file fname, temporarily overriding kwargs. 
 
        Note: produces no return value."""
        self._temp_args = kwargs
        urlretrieve(str(self), fname)
        self._temp_args = None

src/p/y/pycogent-HEAD/cogent/db/util.py   pycogent(Download)
#!/usr/bin/env python
"""Retrieve information from web databases.
"""
from urllib import urlopen, urlretrieve, quote_plus
 
__author__ = "Rob Knight"
__copyright__ = "Copyright 2007-2009, The Cogent Project"
    def retrieve(self, fname, **kwargs):
        """Gets URL and writes to file fname, temporarily overriding kwargs. 
 
        Note: produces no return value."""
        self._temp_args = kwargs
        urlretrieve(str(self), fname)
        self._temp_args = None

src/c/o/cogent-1.4.1/cogent/db/util.py   cogent(Download)
#!/usr/bin/env python
"""Retrieve information from web databases.
"""
from urllib import urlopen, urlretrieve, quote_plus
 
__author__ = "Rob Knight"
__copyright__ = "Copyright 2007-2009, The Cogent Project"
    def retrieve(self, fname, **kwargs):
        """Gets URL and writes to file fname, temporarily overriding kwargs. 
 
        Note: produces no return value."""
        self._temp_args = kwargs
        urlretrieve(str(self), fname)
        self._temp_args = None

src/s/c/scripts4xbmc-HEAD/trunk/plugins/video/All Game/resources/pluginAPI/plugin_search.py   scripts4xbmc(Download)
import xbmc
import xbmcgui
import xbmcplugin
from urllib import unquote, urlretrieve
 
from convert import translate_string, ENTITY_OR_CHARREF
from scrapers.search_scrapers import *
                try:
                    if not os.path.isdir( os.path.dirname( cover_image ) ):
                        os.makedirs( os.path.dirname( cover_image ) )
                    fp, h = urlretrieve( online_tbn, cover_image )
                    try:
                        if "text" in h[ "Content-Type" ]: os.unlink( cover_image )
                    except: pass

src/s/c/scripts4xbmc-HEAD/trunk/plugins/video/All Game/resources/pluginAPI/plugin_releases.py   scripts4xbmc(Download)
import xbmc
import xbmcgui
import xbmcplugin
from urllib import unquote, urlretrieve
 
from convert import translate_string, ENTITY_OR_CHARREF
from scrapers.releases_scrapers import *
                try:
                    if not os.path.isdir( os.path.dirname( cover_image ) ):
                        os.makedirs( os.path.dirname( cover_image ) )
                    fp, h = urlretrieve( online_tbn, cover_image )
                    try:
                        if "text" in h[ "Content-Type" ]: os.unlink( cover_image )
                    except: pass

  1 | 2 | 3 | 4 | 5 | 6  Next