Skip to content

Commit

Permalink
bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Aug 5, 2024
1 parent eef7a64 commit 34e4f87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/cron_market_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,13 @@ async def run():
custom_domains = ['prnewswire.com', 'globenewswire.com', 'accesswire.com']
data = filter_and_deduplicate(data, excluded_domains=custom_domains)
data_name = 'stock-news'


#elif "press-releases" in url:
# data_name = 'press-releases'
#with open(f"json/market-news/{data_name}.json", 'w') as file:
# ujson.dump(data, file)

with open(f"json/market-news/{data_name}.json", 'w') as file:
ujson.dump(data, file)



Expand Down

0 comments on commit 34e4f87

Please sign in to comment.