Fix <br> text on tweets
This commit is contained in:
parent
64dc9b6658
commit
923c3f2a62
@ -871,7 +871,7 @@ def getFeed(urls):
|
||||
newPost["twitterName"] = post.find('a', attrs={'class': 'fullname'}).text
|
||||
newPost["timeStamp"] = date_time_str
|
||||
newPost["date"] = post.find('span', attrs={'class': 'tweet-date'}).find('a').text
|
||||
newPost["content"] = Markup(post.find('div', attrs={'class': 'tweet-content'})).replace("\n", "<br>")
|
||||
newPost["content"] = Markup(post.find('div', attrs={'class': 'tweet-content'}).replace("\n", "<br>"))
|
||||
|
||||
if post.find('div', attrs={'class': 'retweet-header'}):
|
||||
newPost["username"] = post.find('div', attrs={'class': 'retweet-header'}).find('div', attrs={
|
||||
|
Reference in New Issue
Block a user