See: https://www.flickr.com/services/api/misc.urls.html
512416
function createPictures(id, farm, server, secret) {

		var NO_LIMIT = 2048;
		var sizes = [
			{id: 't', max: 100},
			{id: 'm', max: 240},
			{id: 'n', max: 320},
			{id: '', max: 500},
			{id: 'z', max: 640},
			{id: 'c', max: 800},
			{id: 'b', max: 1024},
			{id: 'h', max: 1600},
			{id: 'k', max: 2048},
			{id: 'o', max: NO_LIMIT}
		];

		return sizes.map(function(size) {
			return {
				source: createPhotoUrl(id, farm, server, secret, size.id),

				// Note: this is a guess that's almost certain to be wrong (unless square source)
				width: size.max,
				height: size.max
			};
		});
	}
1162032
def get_image_url(self, selector, by=By.CSS_SELECTOR,
                      timeout=settings.SMALL_TIMEOUT):
        
        if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:
            timeout = self.__get_new_timeout(timeout)
        return self.get_attribute(selector,
                                  attribute='src', by=by, timeout=timeout)
347017
def url_info(request):
    

    return {
        'MEDIA_URL' : core_settings.MEDIA_URL,
        'STATIC_URL': core_settings.STATIC_URL,
        'VERSION' : core_settings.VERSION,
        'SERVER_INFO' : core_settings.SERVER_INFO,
        'SITE_NAME' : current_site_name,
        'CURRENT_SITE': current_site,
    }
258901
function (uris) {
        uris.map(function (u) {
          var thing = $rdf.sym(u) // Attachment needs text label to disinguish I think not icon.
          console.log('Dropped on mugshot thing ' + thing) // icon was: UI.icons.iconBase + 'noun_25830.svg'
          if (u.startsWith('http') && u.indexOf('#') < 0) { // Plain document
            // Take a copy of a photo on the web:
            kb.fetcher.webOperation('GET', thing.uri).then(result => {
              let contentType = result.headers.get('Content-Type')
              // let data = result.responseText
              let pathEnd = thing.uri.split('/').slice(-1)[0] // last segment as putative filename
              pathEnd = pathEnd.split('?')[0] // chop off any query params
              result.arrayBuffer().then(function (data) { // read text stream
                if (!result.ok) {
                  complain('Error downloading ' + thing + ':' + result.status)
                  return
                }
                uploadFileToContact(pathEnd, contentType, data)
              })
            })
            return
          } else {
            console.log('Not a web document URI, cannot copy as picture: ' + thing)
          }
          handleDroppedThing(thing)
        })
      }
43010
def get_images(self, obj):
        """"""
        return {str(i.tag): i.image.url for i in obj.images.all()}
1120668
def api_url(self):
        ''''''
        return pathjoin(Request.path, self.id, url=self.bin.api_url)
98011
def maybe_imgur(self, path):
        '''
        '''
        if not FLAGS.imgur_client_id:
            return path

        im = pyimgur.Imgur(FLAGS.imgur_client_id)
        uploaded_image = im.upload_image(path)
        return '%s %s' % (path, uploaded_image.link)
894847
def get_small_image_url(self, page=1):
        
        template = self.resources.page.get('image')
        return template.replace(
            "{page}",
            str(page)
        ).replace("{size}", "small")
649061
def getImageObject(url, referrer, session, max_content_bytes=MaxImageBytes):
    """"""
    return urlopen(url, session, referrer=referrer, max_content_bytes=max_content_bytes, stream=True)
825398
def get_master_url(request, image_id):
    '''
    
    '''
    im = get_object_or_404(MasterImage, pk=image_id)

    return JsonResponse({'url': im.get_master_url()})
432823
def image_url(self) -> Optional[str]:
        

        """
        images = self.attributes.get('imageinfo', [])
        if images and isinstance(images, collections.abc.Sequence):
            return images[0]['url']
        return None
475236
def album_primary_image_url(self):
    ''''''
    path = '/Items/{}/Images/Primary'.format(self.album_id)
    return self.connector.get_url(path, attach_api_key=False)
469013
def photo(self, args):
        
        rsp = self._load_rsp(self.flickr.photos_getInfo(photo_id=args[0]))
        p = rsp['photo']
        yield self._prep(p)
429967
def _view_url(preference)
      uri = URI(request.url)
      query = Rack::Utils.parse_nested_query(uri.query)
      query["prefer"] = preference
      uri.query = query.to_param
      uri.to_s
    end
1368409
def images(self):
        
        uri = "/%s/images" % self.uri_base
        resp, resp_body = self.api.method_get(uri)
        return resp_body
316248
def replace_from_url(self, photo, url, **kwds):
        
        result = self._client.post("/photo/%s/replace.json" %
                                   self._extract_id(photo),
                                   photo=url,
                                   **kwds)["result"]
        return Photo(self._client, result)
247011
def get_image_path(repo_url, trailing_path):
    '''
    '''
    repo_url = repo_url.split('@')[-1].strip()
    if repo_url.endswith('.git'):
        repo_url =  repo_url[:-4]
    return "%s/%s" %(re.sub('^http.+//www[.]','',repo_url), trailing_path)