Fix Tildes down for maintenance edge case
This commit is contained in:
parent
edc4c439d7
commit
9e55f6e4ec
|
@ -67,6 +67,8 @@ def story(ref):
|
|||
|
||||
soup = BeautifulSoup(html, features='html.parser')
|
||||
a = soup.find('article', class_='topic-full')
|
||||
if a is None: return False
|
||||
|
||||
h = a.find('header')
|
||||
lu = h.find('a', class_='link-user')
|
||||
|
||||
|
@ -112,7 +114,7 @@ if __name__ == '__main__':
|
|||
#print(self_post)
|
||||
#li_comment = story('gqx')
|
||||
#print(li_comment)
|
||||
broken = story('hsg')
|
||||
broken = story('ikn')
|
||||
print(broken)
|
||||
|
||||
# make sure there's no self-reference
|
||||
|
|
Loading…
Reference in New Issue
Block a user