Answer by HedgeHog for Return for specific title keyword with beautifoulsoup
You have to iterate over the items of the feed and check if title text contains your term:for e in soup.select('item'): if 'Guide' in e.title.text: print(e.title.text) print(e.link.text)Examplefrom bs4...
View ArticleReturn for specific title keyword with beautifoulsoup
I'm trying to create a web scraper that returns articles only if there is a certain keyword in the title from an rss feed (xml format). However, whenever I run the code it returns blank, even if the...
View Article
More Pages to Explore .....