-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add script for FIP Segreteria Generale
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
from src.scripts.common.fipcommon import refresh_feed as refresh_feed_common | ||
|
||
|
||
def refresh_feed(rss_folder): | ||
request = { | ||
"url": f"https://segreteriagenerale.fip.it/comunicati/", | ||
"sentences": { | ||
"feed_title": "FIP - Segreteria Generale - Comunicati", | ||
"feed_description": "RSS feed dei comunicati della Segreteria Generale di FIP", | ||
"feed_generator": "FIP - Segreteria Generale - Comunicati (from RSS Feed Generator)" | ||
} | ||
} | ||
refresh_feed_common(rss_folder, request) | ||
|
||
|
||
if __name__ == "__main__": | ||
refresh_feed(".") |