刮脸 [英] Scraping facebook

查看:103
本文介绍了刮脸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要快速获取大约1000位用户的名字,我现在只拥有Facebook id并访问令牌。我不舒服的FB api,所以我正在考虑只是写一个刮刀从用户的FB页面中重新命名(因为我有用户的id)。

I need to quickly get the names of about 1000 users that I now only have the facebook id and access tokens of. I'm not comfortable with the FB api yet so I was considering just writing a scraper to retrive the name from the FB page of the user (since I have the id of the users).


  1. 这是否允许?我认为这不是最佳实践,但它有多严重?会让我被禁止吗?数据只会用于完成我们的用户数据库,所以没有广告

  1. Is this allowed? I assume it's not "best practice" but how severe is it? Will it get me banned for instance? The data will only be used to complete our user database so no advertisement

替代方案:任何人都可以指出一个好的(和最新的)指南如何使用FB api获取用户信息(请记住,我拥有所有用户的ID和access.tokens)。

Alternativly: Can anyone point me in to a good (and up to date) guide of how to get user info using the FB api (keep in mind that I have the ID and the access.tokens of all my users).


推荐答案


  1. 不,不允许抓取您必须使用Graph API: https://www.facebook.com/apps/site_scraping_tos_terms.php

  2. / me?fields = name& access_token = [user-access-token] 返回用户名 - 你可能会遇到API限制,但如果这是一件事情,那不应该真的重要。如果遇到限制,只需稍等一下即可获得下一批。

  1. No, scraping is not allowed and you MUST use the Graph API: https://www.facebook.com/apps/site_scraping_tos_terms.php
  2. /me?fields=name&access_token=[user-access-token] returns the name of a User - You may run into API limits though, but if it´s a one time thing it should not really matter. If you run into limits, just wait a bit and get the next batch.

这篇关于刮脸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆