INNER CODE UNIT · Python

add_authors

junyanz/CatPapers · compile_cat_papers.py:91

    def add_authors(self, content):
        for author, url in zip(self.authors[:-1], self.author_urls[:-1]):
            if url:
                content += '<a href="%s">%s</a>, \n' % (url, author)
            else:
                content += "%s, \n" % author
        if self.author_urls[-1]:
            content += '<a href="%s">%s</a><br>\n' % (
                self.author_urls[-1],
                self.authors[-1],
            )
        else:
            content += "%s<br>\n" % self.authors[-1]
        return content

    def write_html(self, html):
        paper_html = "<table><tbody><tr><td>\n"
        paper_html += (

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…