The directory path resolution order for storing files, from lowest to highest priority, can be found below.įor rss_news_reader.log file: home directory -> DEFAULT_DIR_PATH -> LOG_DIR_PATHįor cache.json file: home directory -> DEFAULT_DIR_PATH -> CACHE_DIR_PATHįor converted to supported formats files like news.html/ pdf/ epub: home directory -> DEFAULT_DIR_PATH -> CONVERT_DIR_PATH -> command line arguments The structure of rss_news_reader.ini file is the following: If rss_news_reader.ini files are present both inside package and home directory, then one inside package You can change this by adding rss_news_reader.ini file either inside rss_news_reader package locally, or inside converted to supported formats files: news.html/ pdf/ epubīy default, the application files are stored inside home directory in a freshly created rss_news_reader folder: - Windows: C:\Users\User\rss_news_reader.If -verbose argument is passed, then all rss_news_reader logs are printed both to console and log file, Of rss_news_reader are printed to console, config logs are not printed to console. If -verbose argument is NOT passed, then only messages with either WARNING or ERROR severities Messages with either WARNING or ERROR severities are always printed to rss_news_reader.log file. general-purpose rss-news-reader application logger.Whenever several URLs with different parameters (?width=.&height=.) but leading to the exact one image areĮncountered, then image with the best resolution is chosen in order to avoid data redundancy it has vital importanceĮspecially for file conversion, when the user doesn't want to see the same images, ones with better quality and others Resulting parsed feed this might bring some inconvenience to the user if he was unable to naturally see the image check-urls requires internet connection when passed, it produces async HTTP HEAD requests in order to defineĪre images without passing this argument some URLs representing images may be ascribed to others category of When -clear-cache is passed individually, cache gets cleared and application terminates Now, you can run the utility in two ways: rss-news-reader You can install it by running the following command: pip install rss-news-reader Tested on Windows and MacOS Installation and usage Rss-news-reader is a command line utility that makes it easy to view RSS feeds in a readable format. Final task for EPAM Python Training 2021.09
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |