【发布时间】:2019-06-11 00:59:09
【问题描述】:
我是一名 Ruby 初学者,目前正在研究 Twitter API。
到目前为止,我已经学会了如何使用带有The Twitter Ruby Gem 的 twitter 机器人来发推文和查找推文。
def follow_hello(client)
client.search("#Hello_World", result_type: "recent").take(20).map do |tweet|
client.follow(tweet.user)
end
end
如何使用#Hello_World“点赞”所有 20 条推文?
我试过了,但它不起作用:
client.search('#Hello_World', result_type: "recent").take(25).each do |like|
【问题讨论】: