CyberPunkMetalHead / Binance-News-Sentiment-Bot

This is a fully functioning Binance trading bot that takes into account the news sentiment for the top 100 crypto feeds. If you like this project consider donating though the Brave browser to allow me to continuously improve the script.
MIT License
1.57k stars 290 forks source link

Make fetching feed async #2

Closed gimbald closed 3 years ago

gimbald commented 3 years ago

Made fetching the feed async, using 'aiohttp' and 'asyncio' libraries. Only 'aiohttp' requires an install asyncio is already party of python. Functionality wise nothing has been changed.

I added as many comments as I could, but let me know if I should add more details about the change.

Before the change it took an average of 106 seconds to parse all feeds, and is now down to around 6-7 seconds.

Oh an added a gitignore since it kept generating cache files.

Cheers!