from dc_base_scrapers.common import (
    BaseScraper,
    get_data_from_url
)


class HashOnlyScraper(BaseScraper):

    def __init__(self, url, council_id, table):
        self.url = url
        self.council_id = council_id
        self.table = table
        super().__init__()

    def make_geometry(self, feature):
        return json.dumps(feature)

    def scrape(self):
        data = get_data_from_url(self.url)
        self.store_history(data, self.council_id)

@@ -69,17 +69,42 @@
 from_url
+,%0A    sync_file_to_github
 %0A
-
 )%0A%0A%0Aclas
@@ -181,16 +181,32 @@
 d, table
+, extension=None
 ):%0A     
@@ -287,16 +287,51 @@
 = table%0A
+        self.extension = extension%0A
         
@@ -446,16 +446,16 @@
 (self):%0A
-
         
@@ -489,16 +489,202 @@
 lf.url)%0A
+%0A        if self.extension:%0A            sync_file_to_github(%0A                self.council_id,%0A                %22%25s.%25s%22 %25 (self.table, self.extension),%0A                data%0A            )%0A%0A
         

allow HashOnlyScraper to sync raw data to GitHub