コード例 #1
0
 def soup(self):
     # lazily load the soup
     # otherwise we will slow down simple operations
     if not self._soup:
         r = get(self.url, self.api)
         self._soup = BeautifulSoup(r.text, html_parser)
     return self._soup
コード例 #2
0
ファイル: product.py プロジェクト: christineli/Lucid
 def soup(self):
     # lazily load the soup
     # otherwise we will slow down simple operations
     if not self._soup:
         r = get(self.url, self.api)
         self._soup = BeautifulSoup(r.text, html_parser)
     return self._soup
コード例 #3
0
ファイル: review.py プロジェクト: rob0tca/amazon_scraper
 def soup(self):
     if not self._soup:
         r = get(self.url, self.api)
         self._soup = BeautifulSoup(r.text, html_parser)
     return self._soup