mirror of
https://github.com/tanrax/RSSingle.git
synced 2025-03-03 03:35:46 +01:00
Compare commits
7 Commits
fix-format
...
add-limit-
Author | SHA1 | Date | |
---|---|---|---|
0dfb71de00 | |||
124a57c033 | |||
16e80795cd | |||
4cd87527bd | |||
0a075bbdc9 | |||
62f24bb204 | |||
dd16696103 |
@ -35,6 +35,7 @@ title: My RSS Feed
|
||||
description: My customised RSS feed with technology news
|
||||
url: https://www.example.com
|
||||
output: rss.xml
|
||||
max_entries: 5 # Delete this line to get all
|
||||
feeds:
|
||||
- https://programadorwebvalencia.com/feed/
|
||||
- https://republicaweb.es/feed/
|
||||
|
@ -2,6 +2,7 @@ title: My RSS Feed
|
||||
description: My customised RSS feed with technology news
|
||||
url: https://www.example.com
|
||||
output: rss.xml
|
||||
max_entries: 2 # Delete this line to get all
|
||||
feeds:
|
||||
- https://programadorwebvalencia.com/feed/
|
||||
- https://republicaweb.es/feed/
|
@ -1,7 +1,7 @@
|
||||
feedgen==0.9.0
|
||||
feedparser==6.0.10
|
||||
listparser==0.19.0
|
||||
lxml==4.9.2
|
||||
lxml==4.9.3
|
||||
python-dateutil==2.8.2
|
||||
pyyaml==6.0
|
||||
pyinstaller==5.13.0
|
||||
pyinstaller==6.0.0
|
@ -96,8 +96,8 @@ def main():
|
||||
for feed in CONFIG["feeds"]:
|
||||
rss = parse_rss_feed(feed)
|
||||
entries = rss.get("entries")
|
||||
log.debug(f"Iterating over {feed} feed entries..")
|
||||
for entry in entries:
|
||||
log.debug("Iterating over [input] feed entries..")
|
||||
for entry in entries[:CONFIG["max_entries"]] if "max_entries" in CONFIG else entries:
|
||||
log.debug("New feed entry created.")
|
||||
|
||||
fe = fg.add_entry()
|
||||
|
Reference in New Issue
Block a user