我正在根据他们的说明here和here构建Twitter搜索API查询。
如果我使用上述说明的确切示例,查询工作正常,就像我发送这样的查询:q=%23superbowl&result_type=recent
,它会给我尽可能多的答案我想得到
BUT
如果我试图搜索主题标签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
)
答案 0 :(得分:1)
刚尝试使用twurl,我目前得到三个标签的结果(#jäniksenvuosi)。
这符合我的预期。在Twitter网站上,返回的三条推文在1月份包含该主题标签。上一次发生在12月。
Twitter的搜索API可以访问大约7天的推文索引,并针对新近度而不是完整性进行了优化(请参阅this page in the developer documentation)