Un événement fb peut correspondre à plusieurs événements

This commit is contained in:
Jean-Marie Favreau
2024-08-29 01:11:26 +02:00
parent 81601ec5da
commit 6ca4fe7964
4 changed files with 48 additions and 24 deletions

View File

@@ -29,8 +29,8 @@ from src.agenda_culturel.import_tasks.custom_extractors import *
if __name__ == "__main__":
u2e = URL2Events(ChromiumHeadlessDownloader(), fbevents.CExtractor())
url = "https://www.facebook.com/laJeteeClermont/events"
url_human = "https://www.facebook.com/laJeteeClermont/events"
url = "https://www.facebook.com/laJeteeClermont/upcoming_hosted_events"
url_human = "https://www.facebook.com/laJeteeClermont/upcoming_hosted_events"
try:
events = u2e.process(url, url_human, cache = "cache-lajetee-fb.html", default_values = {"location": "La Jetée"}, published = True)