(self)
return [self.paste(urljoin(self.url_base, link.a.get('href'))) for link in links]
Gets the archive page for the paste site.

        Returns list of links to pastes.
Gets the archive page for the paste site.
Gets the archive page for the paste site .
def get(self):
        """
        Gets the archive page for the paste site.

        Returns list of links to pastes.
        """
        req = requests.get(self.url_base+self.url_archive, headers=self.headers)
        LOGGER.debug('Got the response for the archive page')
        while req.status_code != 200:
            LOGGER.error('Response was not 200. Trying again...')
            req = requests.get(self.url_base+self.url_archive)
        soup = BeautifulSoup(req.text, 'lxml')
        links = soup.find_all(self.paste_tag)
        LOGGER.debug('Got %d links from page', len(links))
        return [self.paste(urljoin(self.url_base, link.a.get('href'))) for link in links]
def get ( self ) : req = requests . get ( self . url_base + self . url_archive , headers = self . headers ) LOGGER . debug ( 'Got the response for the archive page' ) while req . status_code != 200 : LOGGER . error ( 'Response was not 200. Trying again...' ) req = requests . get ( self . url_base + self . url_archive ) soup = BeautifulSoup ( req . text , 'lxml' ) links = soup . find_all ( self . paste_tag ) LOGGER . debug ( 'Got %d links from page' , len ( links ) ) return [ self . paste ( urljoin ( self . url_base , link . a . get ( 'href' ) ) ) for link in links ]