I am trying to extract text from this element:
<div class="_pac" data-bt="{"ct":"sub_headers"}"><a href="https://www.facebook.com/pages/%EB%B6%81%EC%9D%BC%EC%97%AC%EC%9E%90%EA%B3%A0%EB%93%B1%ED%95%99%EA%B5%90/110634532291267">북일여자고등학교</a><div class="_1my"></div></div>
I am trying to extract the text after href -
'북일여자고등학교'
So far I tried:
content = driver.find_element_by_css_selector('div._pac')
for i in content:
i.get_attribute('text')
However, it is not returning anything. How can I extract the text?