So I got a string output out of a css selector while web crawling and the string has 7 lines, 6 of them are useless and I only want the 4th line.
The string is as follows:
کارکرد:
۵۰,۰۰۰
رنگ:
سفید
وضعیت بدنه:
بدون رنگ
قیمت صفر : ۳۱۵,۰۰۰,۰۰۰ تومان
Is there a way to print only the 4th line?
The crawling code:
color = driver.find_elements_by_css_selector("div[class='col']")
for c in color:
print(c.text)