Retry transient metadata requests and handle legacy empty HTML attributes
Metadata integrity checks / metadata (push) Successful in 7s

This commit is contained in:
2026-11-06 15:01:15 +08:00
parent 15bb4920c6
commit 1213369824
5 changed files with 73 additions and 3 deletions
+5
View File
@@ -9,6 +9,11 @@ from collect_proceedings import paper_links,parse_paper
class ProceedingsTests(unittest.TestCase):
def test_legacy_empty_class_attribute_does_not_break_a_paper(self):
html='<div class>Legacy formatting</div><h1>Paper</h1><p class="paper-abstract">Real abstract.</p>'
row=parse_paper(html,'https://proceedings.neurips.cc/paper/2000/hash/a-Abstract.html','neurips',2000,'https://proceedings.neurips.cc/paper/2000')
self.assertEqual(row['abstract'],'Real abstract.')
def test_colm_nested_abstract_and_citation_authors(self):
html='''<meta name="citation_title" content="A paper"><meta name="citation_author" content="Doe, Jane"><section><h2>Abstract</h2><p class="paper-abstract"><p>Real <em>abstract</em> text.</p></p></section><h4>Name Change Policy</h4><p>Do not ingest footer.</p>'''
row=parse_paper(html,'https://proceedings.colm.cc/paper_files/paper/2024/hash/a-Abstract-Conference.html','colm',2024,'https://proceedings.colm.cc/paper_files/paper/2024')