Ejemplo n.º 1
0
 def __init__(self, name_start=''):
     # name_start, if given, should be a string of the first restaurant name
     # to start scraping, alphabetically. This is useful if you've run the
     # scraper and it's broken several hours into it -- you can pick up
     # around where it left off.
     NewsItemListDetailScraper.__init__(self)
     self.name_start = name_start.lower()
Ejemplo n.º 2
0
 def __init__(self, name_start=""):
     # name_start, if given, should be a string of the first restaurant name
     # to start scraping, alphabetically. This is useful if you've run the
     # scraper and it's broken several hours into it -- you can pick up
     # around where it left off.
     NewsItemListDetailScraper.__init__(self)
     self.name_start = name_start.lower()
Ejemplo n.º 3
0
 def __init__(self, mdb_filename=None):
     # If mdb_filename is given, it should be the name of an MDB file on the
     # local filesystem to import. Otherwise, this will try to find the
     # latest one available online.
     NewsItemListDetailScraper.__init__(self)
     self._local_mdb_filename = mdb_filename
     self._mdb_filename = None
     self._locations_cache = self._inspection_type_cache = self._violations_cache = self._violation_type_cache = None
Ejemplo n.º 4
0
 def __init__(self, filename=None):
     self.woodstock_filename = filename
     NewsItemListDetailScraper.__init__(self)
Ejemplo n.º 5
0
 def __init__(self, start_date=None, end_date=None):
     NewsItemListDetailScraper.__init__(self)
     today = datetime.date.today()
     self.start_date = start_date or (today - datetime.timedelta(days=31))
     self.end_date = end_date or today
Ejemplo n.º 6
0
 def __init__(self, start_date=None, end_date=None):
     NewsItemListDetailScraper.__init__(self, use_cache=False)
     if start_date is None:
         today = datetime.date.today()
         start_date, end_date = today - datetime.timedelta(days=5), today
     self.start_date, self.end_date = start_date, end_date
Ejemplo n.º 7
0
 def __init__(self, start_date=None, end_date=None):
     NewsItemListDetailScraper.__init__(self, use_cache=False)
     if start_date is None:
         today = datetime.date.today()
         start_date, end_date = today - datetime.timedelta(days=5), today
     self.start_date, self.end_date = start_date, end_date
Ejemplo n.º 8
0
 def __init__(self, start_date=None, end_date=None):
     NewsItemListDetailScraper.__init__(self)
     today = datetime.date.today()
     self.start_date = start_date or (today - datetime.timedelta(days=31))
     self.end_date = end_date or today
Ejemplo n.º 9
0
 def __init__(self, hours=8, *args, **kwargs):
     self.num_hours = hours
     NewsItemListDetailScraper.__init__(self, *args, **kwargs)
Ejemplo n.º 10
0
 def __init__(self, filename=None):
     self.woodstock_filename = filename
     NewsItemListDetailScraper.__init__(self)