It seems something straightforward to implement as this element has its own banner. It would lead a lot of useful information for network analysis. Something like:
def _get_tweet_replies(self, tweet):
"""
Extract reply header from a tweet
:param tweet: tweet to extract header from
:return: all headers
"""
if tweet.find("div", class_="replying-to"):
try:
output = []
for p in tweet.find("div", class_="replying-to").find_all("a"):
output.append(p.text)
except:
output = tweet.find("div", class_="replying-to").find("a").text
else: output = ""
return (output)
It seems something straightforward to implement as this element has its own banner. It would lead a lot of useful information for network analysis. Something like:
Also, a lot of thanks for that very useful tool!