代码之家  ›  专栏  ›  技术社区  ›  Jack Kinsella

如何使用Ruby机械化自动喜欢Facebook帖子

  •  1
  • Jack Kinsella  · 技术社区  · 14 年前

    我正在尝试创建一个自动“喜欢”Facebook帖子的机器人。使用Mechanical,我可以登录Facebook,但不幸的是,Mechanical无法理解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">
    

    有人知道我怎样才能让机械化看到“相似”的链接吗?

    谢谢

    1 回复  |  直到 14 年前
        1
  •  10
  •   Travis    14 年前

    为什么不尝试访问该网站的移动版本呢? http://m.facebook.com . 看起来链接没有使用任何JS。