Skip to content

Commit

Permalink
Merge branch 'main' of github.com:reuteras/rssfixer
Browse files Browse the repository at this point in the history
  • Loading branch information
reuteras committed Aug 13, 2023
2 parents 317e17e + 09f8356 commit afc01f8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
![PyPI](https://img.shields.io/pypi/v/rssfixer?color=green)
[![CodeQL](https://github.com/reuteras/rssfixer/workflows/CodeQL/badge.svg)](https://github.com/reuteras/rssfixer/actions?query=workflow%3ACodeQL)
[![Coverage](https://raw.githubusercontent.com/reuteras/rssfixer/main/resources/coverage.svg)](https://github.com/reuteras/rssfixer/)
[![security: bandit](https://img.shields.io/badge/security-bandit-green.svg)](https://github.com/PyCQA/bandit)

<!-- OUTPUT:END -->

A tool to generate an [RSS][rss] feed from some [WordPress][wor] blogs and other sources that for some reason don't generate their own feeds. This tool uses [BeautifulSoup][bso] to parse the HTML and [feedgen][fge] to generate the feed. I created this tool to be to follow news from companies that have forgotten the usefulness of RSS.
Expand Down Expand Up @@ -118,8 +118,9 @@ Command-line options (updated on commit by [markdown-code-runner][mcr]):
usage: rssfixer [-h] (--html | --json | --list | --release) [--version]
[--atom] [--base-url BASE_URL] [--release-url RELEASE_URL]
[--release-entries RELEASE_ENTRIES]
[--html-entries HTML_ENTRIES] [--html-url HTML_URL]
[--html-title HTML_TITLE]
[--html-entries HTML_ENTRIES]
[--html-entries-class HTML_ENTRIES_CLASS]
[--html-url HTML_URL] [--html-title HTML_TITLE]
[--html-title-class HTML_TITLE_CLASS]
[--title-filter TITLE_FILTER]
[--html-description HTML_DESCRIPTION]
Expand All @@ -129,7 +130,7 @@ usage: rssfixer [-h] (--html | --json | --list | --release) [--version]
[--json-description JSON_DESCRIPTION] [--output OUTPUT]
[--title TITLE] [--user-agent USER_AGENT]
[--filter-type FILTER_TYPE] [--filter-name FILTER_NAME] [-q]
[--stdout]
[-d] [--stdout]
url
Generate RSS feed for blog that don't publish a feed. Default is to find links
Expand All @@ -154,6 +155,8 @@ options:
Release selector for entries
--html-entries HTML_ENTRIES
HTML selector for entries
--html-entries-class HTML_ENTRIES_CLASS
Class name for entries
--html-url HTML_URL HTML selector for URL
--html-title HTML_TITLE
HTML selector for title
Expand Down Expand Up @@ -181,6 +184,7 @@ options:
--filter-name FILTER_NAME
Filter web page
-q, --quiet Suppress output
-d, --debug Debug selection
--stdout Print to stdout
```

Expand Down
6 changes: 3 additions & 3 deletions resources/bandit.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"errors": [],
"generated_at": "2023-05-29T11:11:26Z",
"generated_at": "2023-08-13T08:52:35Z",
"metrics": {
"_totals": {
"CONFIDENCE.HIGH": 0,
Expand All @@ -11,7 +11,7 @@
"SEVERITY.LOW": 0,
"SEVERITY.MEDIUM": 0,
"SEVERITY.UNDEFINED": 0,
"loc": 382,
"loc": 402,
"nosec": 0,
"skipped_tests": 0
},
Expand All @@ -37,7 +37,7 @@
"SEVERITY.LOW": 0,
"SEVERITY.MEDIUM": 0,
"SEVERITY.UNDEFINED": 0,
"loc": 378,
"loc": 398,
"nosec": 0,
"skipped_tests": 0
}
Expand Down
4 changes: 2 additions & 2 deletions resources/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/coverage.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Name Stmts Miss Cover Missing
---------------------------------------------------------------------------
src/rssfixer/__init__.py 2 0 100%
src/rssfixer/rss.py 244 22 91% 90-95, 151-153, 411, 416-417, 425, 431, 434-441, 448
src/rssfixer/rss.py 257 27 89% 90-98, 136, 163-165, 430, 435-436, 444, 446-447, 453, 456-463, 470
src/tests/test_rss.py 197 0 100%
src/tests/test_rss_args.py 61 0 100%
src/tests/test_rss_extract_links_release.py 29 0 100%
src/tests/test_rss_main.py 32 0 100%
---------------------------------------------------------------------------
TOTAL 565 22 96%
TOTAL 578 27 95%

0 comments on commit afc01f8

Please sign in to comment.