예제 #1
0
 def data(self):
     return {
         'name': self.name,
         'quantity': get_element_text(self.find_child(self.STR_XPATH[1])),
         'price': get_element_text(self.find_child('sc-price ')),
         'product_id': self.product_id,
         'link': self.find_child('sc-product-link').get_attribute('href')
     }
예제 #2
0
 def name(self):
     return get_element_text(self.find_child(self.STR_XPATH[0]))
예제 #3
0
 def card_number(self):
     return get_element_text(self.find_child('card-info')).split(' ')[-1]
예제 #4
0
 def __str__(self):
     return self.STR_SEP.join(
         [get_element_text(self.find_child(x)) for x in self.STR_XPATH]
     )
예제 #5
0
 def __str__(self):
     return self.STR_SEP.join(
         [self.delivery_type,
          get_element_text(self.find_child(self.STR_XPATH[0]))]
     )