Coder Social home page Coder Social logo

florke64 / rss-static-reader Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 412 KB

RSS-Static-Reader, parses RSS feeds into organized HTML documents, linking to the articles

License: GNU General Public License v2.0

Python 90.87% HTML 9.13%
rss-reader static-html personal-project self-hosted

rss-static-reader's Introduction

Interested in Linux and Self-hosting.

rss-static-reader's People

Contributors

florke64 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

rss-static-reader's Issues

Unhandled Exception

Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/home/pi/Services/rss-static-reader/rss_static_reader.py", line 180, in run
self.fetched_articles: list[Union[FeedArticle]] = article_list_factory(
File "/home/pi/Services/rss-static-reader/rss_static_reader.py", line 131, in article_list_factory
articles.append(FeedArticle(title, article_url, published_date, author, feed_source))
File "/home/pi/Services/rss-static-reader/rss_static_reader.py", line 99, in init
self.published_date_time: datetime = datetime.datetime.strptime(published_on, datetime_format)
File "/usr/local/lib/python3.9/_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "/usr/local/lib/python3.9/_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '2021-08-31T10:25:49Z' does not match format '%a, %d %b %Y %H:%M:%S %z'

Next job shows incorrect runtime duration

Each job after first run shows runtime duration including wait time.

Job finished in 6.48254132270813 seconds.
INFO: Waiting 15 minute(s) for next run...
[...]
Job finished in 913.0016531944275 seconds.
INFO: Waiting 15 minute(s) for next run...

Full log:
pi@pinator:~/Services/rss-static-reader $ python3.9 rss_static_reader.py
RSS Static Reader, Copyright (C) 2021 Daniel Wasiak
RSS Static Reader comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt file.
This is free software, and you are welcome to redistribute it
under certain conditions; see LICENSE.txt file for details.

Arch Linux News (10 articles) -- Parser finished in 0.5170631408691406
OMG, Ubuntu! (27 articles) -- Parser finished in 0.7285301685333252
It's FOSS (50 articles) -- Parser finished in 6.440639495849609
Job finished in 6.48254132270813 seconds.
INFO: Waiting 15 minute(s) for next run...

Arch Linux News (10 articles) -- Parser finished in 0.28144145011901855
OMG, Ubuntu! (27 articles) -- Parser finished in 0.6928317546844482
It's FOSS (50 articles) -- Parser finished in 6.3799920082092285
Job finished in 913.0016531944275 seconds.
INFO: Waiting 15 minute(s) for next run...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.