diff --git a/src/agenda_culturel/import_tasks/generic_extractors/mobilizon.py b/src/agenda_culturel/import_tasks/generic_extractors/mobilizon.py index 8c8f8d0..c5806d0 100644 --- a/src/agenda_culturel/import_tasks/generic_extractors/mobilizon.py +++ b/src/agenda_culturel/import_tasks/generic_extractors/mobilizon.py @@ -132,11 +132,6 @@ query($preferredUsername: String!, $afterDatetime: DateTime, $page: Int) { self.clear_events() if "@" in url: - # TODO: quand on a - # https://mobilizon.fr/@xr_clermont_ferrand@mobilizon.extinctionrebellion.fr/events - # on doit retourner : - # https://mobilizon.extinctionrebellion.fr/@xr_clermont_ferrand/events - # split url to identify server url and actor id elems = [x for x in url.split("/") if len(x) > 0 and x[0] == "@"] if len(elems) == 1: @@ -161,7 +156,7 @@ query($preferredUsername: String!, $afterDatetime: DateTime, $page: Int) { ) soup = BeautifulSoup(e["description"], "html.parser") - description = soup.text + description = soup.get_text(separator="\n") start = ( dateutil.parser.isoparse(e["beginsOn"]) .replace(tzinfo=timezone.utc)