Answer the question
In order to leave comments, you need to log in
How to convert from string to .. string??
You need to pass the find_str string to the parser() method . In the parser, I attach a string to item , but it is read as a string, that is, the find () method is not called.
find_str = "find('div', class_='product__price').find('span').get_text(strip=True)"
site.parser('div', 'product', find_str, 'B2')
'price': item.find_str
'price': item.find('div', class_='product__price').find('span').get_text(strip=True)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question