scripts/scraper.py
def scrape_print_date(self, soup):
        """
        Given a Beautiful Soup object of the page of a Guardian/Observer issue
        contents this will extract the date of the issue from the page and return a
        datetime object.
        """
        # Get the string of the date, eg "Monday 14 December 2015".
        today_str = soup.find(
            "div", {"class": "fc-container__header__description"}
        ).string

        return dateutil.parser.parse(today_str)

        Given a Beautiful Soup object of the page of a Guardian/Observer issue
        contents this will extract the date of the issue from the page and return a
        datetime object.
        
Given a Beautiful Soup object of the page of a Guardian/Observer issue
contents this will extract the date of the issue from the page and return a
datetime object.
Given a Beautiful Soup object of the page of a Guardian / Observer issue contents this will extract the date of the issue from the page and return a datetime object .
def scrape_print_date(self, soup):
        today_str = soup.find(
            "div", {"class": "fc-container__header__description"}
        ).string
        return dateutil.parser.parse(today_str)
def scrape_print_date ( self , soup ) : today_str = soup . find ( "div" , { "class" : "fc-container__header__description" } ) . string return dateutil . parser . parse ( today_str )
Given a Beautiful Soup object of the page of a Guardian/Observer issue
contents this will extract the date of the issue from the page and return a
datetime object.
Given a Beautiful Soup object of the page of a Guardian / Observer issue contents this will extract the date of the issue from the page and return a datetime object .
"""
        Given a Beautiful Soup object of the page of a Guardian/Observer issue
        contents this will extract the date of the issue from the page and return a
        datetime object.
        """ # Get the string of the date, eg "Monday 14 December 2015".
self
soup