Forums

this is my twitter bot retrieving and replying to tweets... Traceback (most recent call last): File "/home/Ja1zinhuu/coninhas_bot.py", line 53, in <module> reply_to_tweets() File "/home/Ja1zinhuu/coninhas_bot.py", line 38, in reply_to_tweets la

Hey guys im trying to create a twitter bot but im getting this error and i cannot figure it out!

Can you help me?

this is my twitter bot retrieving and replying to tweets... Traceback (most recent call last): File "/home/Ja1zinhuu/coninhas_bot.py", line 53, in <module> reply_to_tweets() File "/home/Ja1zinhuu/coninhas_bot.py", line 38, in reply_to_tweets last_seen_id = retrieve_last_seen_id(FILE_NAME) File "/home/Ja1zinhuu/coninhas_bot.py", line 26, in retrieve_last_seen_id last_seen_id = int(f_read.read().strip()) ValueError: invalid literal for int() with base 10: ''

Thanks for the help everybody!

Check what you're getting from f.read().strip(). You're trying to convert it to an int, but it's not a string that can be converted to an int.