twitter - How to perform a boolean search using the Twitter search API through tweepy
问题描述
new_tweets = api.search(q=searchQuery, count=tweetsPerQry)
How do i perform a AND , OR, NOT serach for searchQuery ?
解决方案
- AND 是默认值。例如 query = "big data" 在推文中是 "big" 和 "data"。
- OR 是通过使用 OR 运算符完成的。例如查询=“喜欢或爱”
- 否定是使用“-”符号完成的。例如查询=“苹果手机”
更多详细信息:https ://developer.twitter.com/en/docs/tweets/search/guides/standard-operators.html
推荐阅读
- android - 如何在 android studio 中修复此错误?
- c# - 在 WPF/MVVM 应用程序中设置编辑状态
- python - Sympy,找到包含复数的无限级数/总和的总和
- python - 在“n”台不同的机器上运行代码但只执行一次
- vue.js - 为什么当我尝试显示存储在本地存储中的组件列表时出现“无法读取 null 的属性‘调用’”?
- react-native - 捕获在反应本机应用程序上加载屏幕所花费的时间
- angular - 首次单击后如何禁用按钮,我希望在一天后单击按钮功能
- python - 如何将列表中的某些元素乘以 0?
- python - 如何将单个列表项拆分为多个项
- php - (PHP) 数据一直返回真或假