基于twitter流API track和tweepy,我想过滤twitter帖子包含 “A B”代码如下:
twitter_stream.filter(track=['A B'])
但结果不是预期的:
A New Project Featuring ASAP Rocky Vince Staples Lil B
In a contract, A & B agree to do various
但我想要匹配的内容如下:
A B want to ....
...xx A B xx...
有人有这些经历吗?
答案 0 :(得分:0)
将空格编码为'%20'。
twitter_stream.filter(track=['A%20B'])