Add suport for removed Tweets (#42)
This commit is contained in:
parent
db3162c1c5
commit
f799d2485b
@ -669,6 +669,9 @@ def getFeed(urls):
|
|||||||
if quote.find('a', attrs={'class':'still-image'}):
|
if quote.find('a', attrs={'class':'still-image'}):
|
||||||
newPost.replyAttachedImg = NITTERINSTANCE+quote.find('a', attrs={'class':'still-image'})['href'][1:]
|
newPost.replyAttachedImg = NITTERINSTANCE+quote.find('a', attrs={'class':'still-image'})['href'][1:]
|
||||||
|
|
||||||
|
if quote.find('div', attrs={'class':'unavailable-quote'}):
|
||||||
|
newPost.replyingUser="Unavailable"
|
||||||
|
else:
|
||||||
newPost.replyingUser=quote.find('a', attrs={'class':'username'}).text
|
newPost.replyingUser=quote.find('a', attrs={'class':'username'}).text
|
||||||
post.find('div', attrs={'class':'quote'}).decompose()
|
post.find('div', attrs={'class':'quote'}).decompose()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user