scripts/scraper.py
def make_article_html(self, article):
        """
        Takes the dictionary for an article from the API and returns an HTML
        version of it.
        """
        return self.template.render(article=article)

        # TODO: Add colours.
        # if 'sectionId' in content and content['sectionId'] in self.section_ids:
        # html = "<div class=\"section-"+self.section_ids[content['sectionId']]+"\">\n"
        # else:
        # html = "<div class=\"section-default\">\n"

        Takes the dictionary for an article from the API and returns an HTML
        version of it.
        
Takes the dictionary for an article from the API and returns an HTML
version of it.
Takes the dictionary for an article from the API and returns an HTML version of it .
def make_article_html(self, article):
        return self.template.render(article=article)
def make_article_html ( self , article ) : return self . template . render ( article = article )
Takes the dictionary for an article from the API and returns an HTML
version of it.
Takes the dictionary for an article from the API and returns an HTML version of it .
"""
        Takes the dictionary for an article from the API and returns an HTML
        version of it.
        """ # TODO: Add colours. # if 'sectionId' in content and content['sectionId'] in self.section_ids: # html = "<div class=\"section-"+self.section_ids[content['sectionId']]+"\">\n" # else: # html = "<div class=\"section-default\">\n"
self
article