Binance-News-Sentiment-Bot icon indicating copy to clipboard operation
Binance-News-Sentiment-Bot copied to clipboard

Could not parse ... messages

Open florisjan78 opened this issue 3 years ago • 3 comments

I am getting the following:

Could not parse https://ethereumworldnews.com/feed/ error is: Server disconnected Could not parse http://infoonbitcoin.com/feed/ error is: Server disconnected Could not parse https://about.crunchbase.com/blog/feed/ error is: Cannot connect to host about.crunchbase.com:443 ssl:default [None] Could not parse https://vaultoro.com/feed/ error is: [Errno 32] Broken pipe Could not parse https://bitcoinspakistan.com/feed/ error is: [Errno 32] Broken pipe Could not parse https://blog.purse.io/feed error is: [Errno 32] Broken pipe Could not parse https://blog.feedspot.com/feed/ error is: Server disconnected Could not parse https://www.goldsilveranalyst.com/feed error is: Server disconnected Could not parse https://coinjournal.net/feed/ error is: [Errno 32] Broken pipe Could not parse https://www.crypnotic.com/blog/feed error is: [Errno 32] Broken pipe Could not parse https://coinpress.io/feed/ error is: [Errno 32] Broken pipe Could not parse https://www.crypto-news.net/feed/ error is: [Errno 32] Broken pipe Could not parse https://www.cryptostache.com/feed/ error is: [Errno 32] Broken pipe Could not parse https://decrypt.co/feed error is: [Errno 32] Broken pipe

I can open the files using a browser, sounds like bad plumbing on their side.

Also:

Could not parse https://botsfolio.com/crypto_news/feed error is: 'NoneType' object has no attribute 'text'

Could not parse http://www.investorideas.com/rss/feeds/iimain.xml error is: time data 'Fri, 23 Apr 2021 14:10:00 EST' does not match format '%a, %d %b %Y %H:%M:%S %z' Maybe support multiple date formats?

florisjan78 avatar Apr 25 '21 03:04 florisjan78

I have already implemented better handling of feeds analysis, so most of a bugs like this will be gone, but program needs 2 more dependencies. I also added some other new feature, so after deep testing I will push all the changes for acceptance near in the future.

Rybens92 avatar Apr 27 '21 09:04 Rybens92

I'm looking forward to seeing the result, I've made a few temporary additions just to be able to see the script in action, like doing a json dump/load. I've also been trying to figure out how to catch the script terminating so it can't happen during those few precious seconds of actual trading. Hasn't resulted in actual code yet, though.

florisjan78 avatar Apr 27 '21 10:04 florisjan78

Nice, playing with code like this is always fun experience.

Json dump&load is already in pull requests and working pretty good for me so far, so you can check it out if you want.

In my current work in progress are also more fixes for preventing bot to stop after an error occurred when using testnet. Just give me few days and I will pull request all the changes

Rybens92 avatar Apr 27 '21 10:04 Rybens92