harao-ml commited on
Commit
32dec0d
·
verified ·
1 Parent(s): 16990e2

Update gather_news.py

Browse files
Files changed (1) hide show
  1. gather_news.py +2 -2
gather_news.py CHANGED
@@ -7,7 +7,7 @@ import requests
7
  from extract_news import extract_news_articles, create_dataframe, save_to_csv
8
 
9
  def fetch_newsapi_top_headlines(min_length=100, max_articles=30):
10
- import config
11
  url = 'https://newsapi.org/v2/top-headlines'
12
  api_key = os.environ.get("api_key")
13
  params = {
@@ -61,7 +61,7 @@ def fetch_newsapi_top_headlines(min_length=100, max_articles=30):
61
  return merged_articles
62
 
63
  def fetch_newsapi_everything(topic, min_length=100, max_articles=50):
64
- import config
65
  url = 'https://newsapi.org/v2/everything'
66
  api_key = os.environ.get("api_key")
67
  params = {
 
7
  from extract_news import extract_news_articles, create_dataframe, save_to_csv
8
 
9
  def fetch_newsapi_top_headlines(min_length=100, max_articles=30):
10
+ #import config
11
  url = 'https://newsapi.org/v2/top-headlines'
12
  api_key = os.environ.get("api_key")
13
  params = {
 
61
  return merged_articles
62
 
63
  def fetch_newsapi_everything(topic, min_length=100, max_articles=50):
64
+ #import config
65
  url = 'https://newsapi.org/v2/everything'
66
  api_key = os.environ.get("api_key")
67
  params = {