我正在尝试创建一个自动“喜欢”Facebook 帖子的机器人。使用 Mechanize 我可以登录 facebook,但不幸的是,Mechanize 不理解指向“like”按钮的链接——它们似乎被 JS 混淆了。我看到的唯一链接是基础知识,例如:
<Mechanize::Page::Link
"Edit friends"
"http://www.facebook.com/friends/?ref=tn">
<Mechanize::Page::Link "Developers" "http://developers.facebook.com/?ref=pf">
<Mechanize::Page::Link "Careers" "/careers/?ref=pf">
<Mechanize::Page::Link "Terms" "/terms.php?ref=pf">
<Mechanize::Page::Link "Find friends" "/find-friends/?ref=pf">
<Mechanize::Page::Link "Privacy" "/policy.php?ref=pf">
<Mechanize::Page::Link "Mobile" "/mobile?ref=pf">
<Mechanize::Page::Link "Help Centre" "/help/?ref=pf">
任何人都知道如何让 Mechanize 看到“喜欢”链接?
谢谢