PythonDayMX / Twitterbot_en_30

Los bots son relevantes para nosotros, pues automatizan tareas que eventualmente simplificarán trabajo a futuro. En este taller relámpago aprenderemos cómo crear un bot en Twitter usando Python, para de manera automática tuitear frases de un libro. ¡En sólo 30 minutos!
https://github.com/PythonDayMX/Crea_un_Twitterbot_en_30_minutos
Apache License 2.0
20 stars 16 forks source link

Errores con archivo book_bot.py #1

Open dtejedavilleda opened 6 years ago

dtejedavilleda commented 6 years ago

Buenos días. Quiero felicitarte por tu trabajo. Excelente. Cuando quiero ejecutar el archivo book_bot.py me muestra los siguientes errores:

C:\Python36-32\Twitterbot_en_30-master\Full>py book_bot.py Al llegar aquí, sin saber por qué, levantó la cabeza y sus ojos se encontraron con los de su admirador. Traceback (most recent call last): File "book_bot.py", line 69, in bot.update_status(status) File "C:\Python36-32\lib\site-packages\tweepy\api.py", line 194, in update_status )(post_data=post_data, *args, **kwargs) File "C:\Python36-32\lib\site-packages\tweepy\binder.py", line 241, in _call method = APIMethod(args, kwargs) File "C:\Python36-32\lib\site-packages\tweepy\binder.py", line 60, in init self.build_parameters(args, kwargs) File "C:\Python36-32\lib\site-packages\tweepy\binder.py", line 95, in build_parameters self.session.params[self.allowed_param[idx]] = convert_to_utf8_str(arg) File "C:\Python36-32\lib\site-packages\tweepy\utils.py", line 34, in convert_to_utf8_str arg = arg.encode('utf-8') UnicodeEncodeError: 'utf-8' codec can't encode characters in position 13-14: surrogates not allowed

Sistema operativo windows 10 32 bits Python 3.6.3 Tweepy instalado

Por favor me puedes ayudar? De anticipado mil gracias.

dtejedavilleda commented 6 years ago

versión de tweepy 3.5.0