New
URS v3.3.0
Summary
- Introduced livestreaming tools:
- Livestream comments or submissions submitted within Subreddits.
- Livestream comments or submissions submitted by a Redditor.
Full Changelog
Added
- User interface
- Added livestream scraper flags:
-lr- livestream a Subreddit-lu- livestream a Redditor- Added livestream scrape control flags to limit stream exclusively to submissions (default is streaming comments):
--stream-submissions
- Added a flag
-v/--versionto display the version number.
- Added livestream scraper flags:
- Source code
- Added a new sub-module
live_scraperswithinpraw_scrapersfor livestream functionality:Livestream.pyutils/DisplayStream.pyutils/StreamGenerator.py
- Added a new file
Version.pyto single-source the package version. - Added a
gallery_dataandmedia_metadatacheck inComments.py, which includes the above fields if the submission contains a gallery.
- Added a new sub-module
README- Added a new "Installation" section with updated installation procedures.
- Added a new section "Livestreaming Subreddits and Redditors" with sub-sections containing details for each flag.
- Updated the Table of Contents accordingly.
- Tests
- Added additional unit tests for the
live_scrapersmodule. These tests are located intests/test_praw_scrapers/test_live_scrapers:tests/test_praw_scrapers/test_live_scrapers/test_Livestream.pytests/test_praw_scrapers/test_live_scrapers/test_utils/test_DisplayStream.pytests/test_praw_scrapers/test_live_scrapers/test_utils/test_StreamGenerator.py
- Added additional unit tests for the
- Repository documents
- Added a Table of Contents for
The Forest.md
- Added a Table of Contents for
Changed
- User interface
- Updated the usage menu to clarify which tools may use which optional flags.
- Source code
- Reindexed the
praw_scrapersmodule:- Moved the following files into the new
static_scraperssub-module:Basic.pyComments.pyRedditor.pySubreddit.py
- Updated absolute imports throughout the source code.
- Moved the following files into the new
- Moved
confirm_options(), previously located inSubreddit.pytoGlobal.py. - Moved
PrepRedditor.prep_redditor()algorithm to its own class methodPrepMutts.prep_mutts().- Added additional error handling to the algorithm to fix the
KeyErrorexception mentioned in the Issue Fix or Enhancement Request section.
- Added additional error handling to the algorithm to fix the
- Removed Colorama's
init()method from many modules - it only needs to be called once and is now located inUrs.py. - Updated
requirements.txt.
- Reindexed the
README- The "Exporting" section is now one large section and is now located on top of the "URS Overview" section.
- Tests
- Updated absolute imports for existing PRAW scrapers.
- Removed a few tests for
DirInit.pysince themake_directory()andmake_type_directory()methods have been deprecated.
Deprecated
- Source code
- Removed many methods defined in the
InitializeDirectoryclass inDirInit.py:LogMissingDir.log()create()make_directory()make_type_directory()make_analytics_directory()- Replaced these methods with a more versatile
create_dirs()method.
- Replaced these methods with a more versatile
- Removed many methods defined in the