Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/s/h/shelf-python-HEAD/providers/FeedProvider.py   shelf-python(Download)
            return
 
        Cache.getContentOfUrlAndCallback( callback = self.gotMainPage, url = self.url, timeout = self.timeout() * 10, wantStale = False, failure = self.failed ) # TODO - use stale version somehow
 
    def specialCaseFeedUrl( self, url ):
            # if we have a feed object, then I'm not interested in re-parsing a stale file.
            wantStale = not self.feed
            Cache.getContentOfUrlAndCallback( callback = self.gotFeed, url = feed_url, username = self.username(), password = self.password(), timeout = self.timeout(), wantStale = wantStale, failure = self.failed )
 
    def gotFeed( self, data, stale ):

src/s/h/shelf-python-HEAD/providers/DopplrProvider.py   shelf-python(Download)
 
        url = "https://www.dopplr.com/api/traveller_info.js?token=%s&traveller=%s"%( self.token, self.username )
        Cache.getContentOfUrlAndCallback( callback = self.gotDopplrData, url = url, timeout = 3600, wantStale = True, failure = self.failed )
 
    def failed(self, error):

src/s/h/shelf-python-HEAD/extractors/Extractor.py   shelf-python(Download)
        print_info("Social graph API call to " + api )
        # TODO _ respect more_urls here
        Cache.getContentOfUrlAndCallback( callback = self.gotSocialGraphData, url = api, timeout = 3600 * 48 ) # huge timeout here
 
    def gotSocialGraphData( self, raw, isStale ):