diff --git a/serenata_toolbox/chamber_of_deputies/official_missions_dataset.py b/serenata_toolbox/chamber_of_deputies/official_missions_dataset.py index f1bd097..dd901c2 100644 --- a/serenata_toolbox/chamber_of_deputies/official_missions_dataset.py +++ b/serenata_toolbox/chamber_of_deputies/official_missions_dataset.py @@ -36,7 +36,7 @@ def fetch(self, start_date, end_date): for r in self._generate_ranges(start_date, end_date): if os.environ.get('DEBUG') == '1': print(r) - for record in self.__fetch_missions_for_range(r[0], r[1]): + for record in self._fetch_missions_for_range(r[0], r[1]): records.append(record) df = pd.DataFrame(records, columns=[ @@ -79,7 +79,7 @@ def _generate_ranges(self, start_date, end_date): ) range_start += timedelta(days=30) - def __fetch_missions_for_range(self, range_start, range_end): + def _fetch_missions_for_range(self, range_start, range_end): url = self.URL.format(range_start, range_end) data = urllib.request.urlopen(url) soup = BeautifulSoup(data, 'html.parser')