OJ-0312 / WebSoundBite

Simple webscraper that finds the newest articles in your area of interest , summarizes them with AI and creates a nice audio file
2 stars 0 forks source link

Break down the responsibilities into separate classes #2

Closed OJ-0312 closed 1 year ago

OJ-0312 commented 1 year ago

Need to separate the function into four different classes

WebScraper Class: Main function that will call the other classes and do the actual webscraping

DateFormatter Class: Very simple class that works with the HTML-parser and creates todayes date in the necessary format

OpenAIProcessing Class: Responsible for summarizing articles

ElevenLabsProcessing Class: Final (preferably optional) conversion of the chatGPT text into an audio file

OJ-0312 commented 1 year ago

Added Dateformatter.cs 3 more to go

OJ-0312 commented 1 year ago

Created 3 test classes 1 interface class and the four function classes mentioned in the issue. Now the code should fulfill the single responsibility principle