How to fix this error?
MrIago opened this issue · 3 comments
MrIago commented
n = Investing()
n.news()
Traceback (most recent call last):
File "<pyshell#1>", line 1, in
n.news()
File "C:\Users\Mr Iago\Desktop\investing.com.economic-calendar-master\investing.py", line 25, in news
news['time'] = int(datetime.datetime.strptime(row.attrs['data-event-datetime'], '%Y/%m/%d %H:%M:%S').strftime('%s'))
ValueError: Invalid format string
freenetwork commented
Indeed, there was a problem. I have not tested on Windows. I corrected and added a couple more things.
MrIago commented
Thanks man! How does the IqOption api works?
freenetwork commented
Thanks man! How does the IqOption api works?
The project stopped because iqoption, does not work in Russia any more. I could continue the project, but the account is necessary.