| Conditions | 4 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from pysmartprice.smartparser import ( |
||
| 28 | def sellers(self, product): |
||
| 29 | search_res = self.search(product) |
||
| 30 | products = [ |
||
| 31 | res for res in search_res if product.lower() in res.title.lower()] |
||
| 32 | |||
| 33 | for product in products: |
||
| 34 | seller_parser = SellerParser(product.url) |
||
| 35 | setattr(product, 'sellers', seller_parser.result) |
||
| 36 | |||
| 37 | return products |
||
| 38 |