python - Gmail API,只有来自 Twitter 电子邮件的片段包含一堆 \u200c 字符,而不是真正的片段
问题描述
这就是我获取线程列表的方式:
page = resource.users().threads().list(
userId='me', q='category: social',
maxResults=50).execute()
threads_list = page.get('threads', [])
当我打印threads_list时,我会得到如下信息:
[{'id': '16643b797b5cf72d', 'snippet': 'Some normal thread snippet.', 'historyId': '461733'}, {'id': '16642fea8db13893', 'snippet': '\u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c \u200c', 'historyId': '461679'}]
在来自 twitter 的一封电子邮件的 gmail 片段中是:“Windows 10 最终将让你镜像你的 Android 手机的应用程序”,但我得到一堆零宽度非连接字符......
只是来自推特的片段是这样的,其他所有片段都是正常的。我正在使用现在已弃用的oauth2client来运行流程,也许这是问题所在,但我不确定。
解决方案
推荐阅读
- android - java.lang.NullPointerException:第二个元素为空
- python-3.x - Python Dice : Avoiding Triple Repetitions
- python-3.x - Pandas 数据框列名似乎错误
- pandas - 如何修复python中的“数据必须是一维”异常
- debugging - 如何在调试时使用 ubuntu 监控 ARM 控制器上的实时数据
- python - 创建具有特殊类型的列表 - Spyder 错误“未定义名称'脚本'”
- react-native - 如何在 react-native 的模式中使用选项卡
- sed - 使用 sed/cat 在多个文件中匹配模式后从 1 个文件中添加文本
- php - 如何使用 PHP 函数返回值的数量
- ip - 如何使用来自其他互联网设备的本地防火墙 IP