I am trying to scrape tweet text using tweet id and my code is:
import selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
browser=webdriver.Chrome()
base_url='https://twitter.com/FoxNews/status/'
query='964981093127655424'
url=base_url+query
browser.get(url)
title=browser.find_element_by_tag_name('title')
print(title)
the output is:
selenium.webdriver.remote.webelement.WebElement(session="7ca1c0e4c33d62a122bc51bbc171c7eb", element="0.37665530454795326-1")
How can i print the text in human readable format? ( In this case: "On Twitter, former President @BillClinton called for a renewal of the Assault Weapons Ban".)