7 Commits

Author SHA1 Message Date
0dfb71de00 Merge branch 'master' into add-limit-entries 2023-10-26 14:53:27 +02:00
124a57c033 Merge pull request #18 from tanrax/fix-format-error
Fix format error
2023-10-26 14:52:35 +02:00
16e80795cd Merge pull request #19 from tanrax/dependabot/pip/lxml-4.9.3
Bump lxml from 4.9.2 to 4.9.3
2023-10-26 14:52:05 +02:00
4cd87527bd Merge pull request #23 from tanrax/dependabot/pip/pyinstaller-6.0.0
Bump pyinstaller from 5.13.0 to 6.0.0
2023-10-26 14:51:30 +02:00
0a075bbdc9 Bump pyinstaller from 5.13.0 to 6.0.0
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 5.13.0 to 6.0.0.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.13.0...v6.0.0)

---
updated-dependencies:
- dependency-name: pyinstaller
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 04:44:00 +00:00
62f24bb204 Bump lxml from 4.9.2 to 4.9.3
Bumps [lxml](https://github.com/lxml/lxml) from 4.9.2 to 4.9.3.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.9.2...lxml-4.9.3)

---
updated-dependencies:
- dependency-name: lxml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 04:25:27 +00:00
dd16696103 Add var config max entries
Use `max_entries` as YAML key.

Co-authored-by: Dom Rodriguez <shymega@shymega.org.uk>
2023-07-06 18:11:15 +01:00
4 changed files with 8 additions and 6 deletions

View File

@ -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/
@ -49,7 +50,7 @@ curl -o config.yml https://raw.githubusercontent.com/tanrax/RSSingle/master/conf
4. Run the binary.
``` shell
./rssingle
./rssingle
```
A file called `rss.xml` will be created.

View File

@ -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/
- https://republicaweb.es/feed/

View File

@ -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

View File

@ -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()