From 58f5afbed2cafea9b4e5a70b3e8838f6b63d5d6b Mon Sep 17 00:00:00 2001 From: DJ Date: Sat, 17 Apr 2021 11:19:49 -0600 Subject: [PATCH] Delete fx_news.py --- gamestonk_terminal/oanda/fx_news.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 gamestonk_terminal/oanda/fx_news.py diff --git a/gamestonk_terminal/oanda/fx_news.py b/gamestonk_terminal/oanda/fx_news.py deleted file mode 100644 index 4faf11dd54f..00000000000 --- a/gamestonk_terminal/oanda/fx_news.py +++ /dev/null @@ -1,19 +0,0 @@ -import requests -import pandas as pd -from bs4 import BeautifulSoup -from gamestonk_terminal.helper_funcs import get_user_agent - - -def daily_fx_news(): - daily_fx_url = "https://www.dailyfx.com/market-news/articles" - daily_fx_soup = BeautifulSoup( - requests.get(daily_fx_url, headers={"User-Agent": get_user_agent()}).text, - "lxml", - ) - daily_fx_news_header_list = list() - for daily_fx_news_header in daily_fx_soup.findAll("a", {"class": "dfx-articleListItem jsdfx-articleListItem d-flex mb-3"}): - daily_fx_news_header_list.append( - daily_fx_news_header.text.strip("\n").split("\n")) - print(daily_fx_news_header) - -