I usually use this python code in the attached photo to extract news data for Egypt so that I can make my own analysis on financial news. However, this gives me tons of irrelevant news (e.g. FIFA World Cup news).
I need to modify it by including columns giving me RICs, categories or labels associated with these news (e.g. Macro, Political…etc), so that I can filter out redundant news.