pascalkrautm / 002---Audio-News-Podcast-Generator

002 - Audio News Podcast Generator, MBA HSD SS21
0 stars 2 forks source link

Scrapping with Feedparser #3

Closed pascalkrautm closed 3 years ago

pascalkrautm commented 3 years ago
Matadore3 commented 3 years ago

alternative: https://stackoverflow.com/questions/12451997/beautifulsoup-gettext-from-between-p-not-picking-up-subsequent-paragraphs

Marco-Me commented 3 years ago

Suggestion: Summarize cleaning code

pascalkrautm commented 3 years ago

alternative for cleaning code in one:

var str  = "hallo, wie geht es Dir, ich/oder Du; blinde Kuh";
var reg  = /[/.;, ]/;

while(reg.exec(str)){
 str = str.replace(reg,"");
}
alert(str);
pascalkrautm commented 3 years ago

Still need more than one Keyword. At the moment only one is working

Matadore3 commented 3 years ago

We decided against Beautiful Soup and for Feedparser because Beautiful Soup needs several modules to work