查询 Twitter 搜索问题 API
Query problems with Twitter search API
我正在根据他们的说明构建 Twitter 搜索 API 查询 here and here。
如果我使用上述说明的确切示例,查询工作正常,例如如果我发送这样的查询:q=%23superbowl&result_type=recent
,它会给我尽可能多的答案
但是
如果我尝试搜索主题标签 jäniksenvuosi(我知道它被多次推文),我只会得到一个答案,而且那个答案是我自己的最新推文。没有别的。
我也尝试过将其与其他带有变音符号的芬兰语单词一起使用,但这些都可以正常工作,所以它也与变音符号无关。
简答题
这两者有什么区别,我该如何解决?
- 工作:
q=%23superbowl&result_type=recent
- 不工作:
q=%23j%C3%A4niksenvuosi&result_type=recent
搜索元数据
超级碗:
[search_metadata] => Array
(
[completed_in] => 0.075
[max_id] => 688984569614327808
[max_id_str] => 688984569614327808
[next_results] => ?max_id=688976241051873280&q=%23superbowl&count=30&include_entities=1&result_type=recent
[query] => %23superbowl
[refresh_url] => ?since_id=688984569614327808&q=%23superbowl&result_type=recent&include_entities=1
[count] => 30
[since_id] => 0
[since_id_str] => 0
)
jäniksenvuosi
[search_metadata] => Array
(
[completed_in] => 0.052
[max_id] => 688984569614327808
[max_id_str] => 688984569614327808
[query] => %23j%C3%A4niksenvuosi
[refresh_url] => ?since_id=688984569614327808&q=%23j%C3%A4niksenvuosi&result_type=recent&include_entities=1
[count] => 30
[since_id] => 0
[since_id_str] => 0
)
刚刚使用 twurl 进行了尝试,目前我得到了该主题标签 (#jäniksenvuosi) 的三个结果。
这与我的预期一致。在 Twitter 网站上,一月份返回了三条包含该主题标签的推文。上一次发生在 12 月。
Twitter 的搜索 API 可以访问涵盖大约 7 天的推文索引,并且针对新近度而不是完整性进行了优化(参见 this page in the developer documentation)
我正在根据他们的说明构建 Twitter 搜索 API 查询 here and here。
如果我使用上述说明的确切示例,查询工作正常,例如如果我发送这样的查询:q=%23superbowl&result_type=recent
,它会给我尽可能多的答案
但是
如果我尝试搜索主题标签 jäniksenvuosi(我知道它被多次推文),我只会得到一个答案,而且那个答案是我自己的最新推文。没有别的。
我也尝试过将其与其他带有变音符号的芬兰语单词一起使用,但这些都可以正常工作,所以它也与变音符号无关。
简答题
这两者有什么区别,我该如何解决?
- 工作:
q=%23superbowl&result_type=recent
- 不工作:
q=%23j%C3%A4niksenvuosi&result_type=recent
搜索元数据
超级碗:
[search_metadata] => Array
(
[completed_in] => 0.075
[max_id] => 688984569614327808
[max_id_str] => 688984569614327808
[next_results] => ?max_id=688976241051873280&q=%23superbowl&count=30&include_entities=1&result_type=recent
[query] => %23superbowl
[refresh_url] => ?since_id=688984569614327808&q=%23superbowl&result_type=recent&include_entities=1
[count] => 30
[since_id] => 0
[since_id_str] => 0
)
jäniksenvuosi
[search_metadata] => Array
(
[completed_in] => 0.052
[max_id] => 688984569614327808
[max_id_str] => 688984569614327808
[query] => %23j%C3%A4niksenvuosi
[refresh_url] => ?since_id=688984569614327808&q=%23j%C3%A4niksenvuosi&result_type=recent&include_entities=1
[count] => 30
[since_id] => 0
[since_id_str] => 0
)
刚刚使用 twurl 进行了尝试,目前我得到了该主题标签 (#jäniksenvuosi) 的三个结果。
这与我的预期一致。在 Twitter 网站上,一月份返回了三条包含该主题标签的推文。上一次发生在 12 月。
Twitter 的搜索 API 可以访问涵盖大约 7 天的推文索引,并且针对新近度而不是完整性进行了优化(参见 this page in the developer documentation)