scripts/scraper.py
def paper_url(self, paper_date):
        """
        Given a datetime object it will return the URL of the Observer (on Sundays)
        or the Guardian (any other day).
        """
        if paper_date.weekday() == 6:
            return self.source_urls["observer"]  # Sunday
        else:
            return self.source_urls["guardian"]

        Given a datetime object it will return the URL of the Observer (on Sundays)
        or the Guardian (any other day).
        
Given a datetime object it will return the URL of the Observer (on Sundays)
or the Guardian (any other day).
Given a datetime object it will return the URL of the Observer ( on Sundays ) or the Guardian ( any other day ) .
def paper_url(self, paper_date):
        if paper_date.weekday() == 6:
            return self.source_urls["observer"]  
        else:
            return self.source_urls["guardian"]
def paper_url ( self , paper_date ) : if paper_date . weekday ( ) == 6 : return self . source_urls [ "observer" ] else : return self . source_urls [ "guardian" ]
Given a datetime object it will return the URL of the Observer (on Sundays)
or the Guardian (any other day).
Given a datetime object it will return the URL of the Observer ( on Sundays ) or the Guardian ( any other day ) .
"""
        Given a datetime object it will return the URL of the Observer (on Sundays)
        or the Guardian (any other day).
        """ # Sunday
self
paper_date