如何根据友情信息抓取Facebook? [英] How to crawl Facebook based on friendship information?

查看:77
本文介绍了如何根据友情信息抓取Facebook?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名研究复杂网络的研究生.我正在从事一个涉及分析Facebook用户之间的联系的项目.是否可以根据友情信息为Facebook编写爬虫程序?

I'm a graduate student whose research is complex network. I am working on a project that involves analyzing connections between Facebook users. Is it possible to write a crawler for Facebook based on friendship information?

我环顾四周,但至今找不到任何有用的东西.看来Facebook不喜欢这种活动.我可以依靠Facebook API吗?

I looked around but couldn't find any things useful so far. It seems Facebook isn't fond of such activity. Can I rely on the Facebook API?

更新(2010年1月8日):非常感谢您的答复.我想我那时可能需要直接联系Facebook.干杯

Update (Jan-08-2010): Thank you very much for the responses. I guess I probably need to contact Facebook directly then. Cheers

更新(2011年2月16日):新书《挖掘社交网络》问世.其中有一章专门介绍如何使用Python挖掘Facebook.干杯.

Update (Feb-16-2011): A new book, "Mining the social web", just came out. In it, there is a chapter devoted entirely for mining Facebook using Python. Cheers.

推荐答案

不幸的是,您不能依赖Facebook API.要获取朋友信息,您需要使用类似 friends.get().但是,任何返回这样的用户信息的Facebook API方法都要求您拥有该用户的活动会话密钥,通常,获取活动会话密钥的方法是使用户进入您的Facebook应用程序或页面.

You can't rely on the Facebook API unfortunately. To get friend information, you need to use something like friends.get(). However, any Facebook API method that returns user information like this requires that you have an active session key from that user, and generally the way you get an active session key is to have the user come to your Facebook application or page.

总而言之,您所谈论的信息本质上是私人的.您无法从Facebook上选择一个人,不能结识他们的朋友,也不可以结识那些朋友的朋友,等等.对我来说,这对隐私是件好事,但它当然可以防止任意分析.

In summary, the information you are talking about is essentially private. You can't pick a person from Facebook, get their friends, and get those friend's friends, and so on. To me this is a good thing for privacy, but of course it prevents arbitrary analysis.

我放弃了编写具有某些用户吸引力的快速而肮脏的应用程序的想法,您可以将其用于研究.如果类似 S ** t我的父亲说(有趣,工作并不十分安全)可以在几个月内获得120,000名用户,您可以使用小型研究应用程序为案件辩护,并获得合理数量的用户.

I'd throw out the idea of writing a quick and dirty application with some user appeal that you could use for research. If a group like S**t My Dad Says (funny, not really safe for work) can get 120,000 users in a couple of months, you could probably plead your case with a small research application and get a reasonable amount of users.

这篇关于如何根据友情信息抓取Facebook?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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