如何抓取Foursquare签入数据? [英] How to crawl foursquare check-in data?

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

问题描述

是否有可能以贪婪的方式从foursquare抓取登机数据? (即使我不与所有用户保持友谊)就像抓取公开发布的Twitter消息一样.如果您有任何经验或建议,请分享.谢谢.

Is it possible to crawl check-in data from foursquare in a greedy way? (even if I don't have friendship with all the users) Just like crawling publicly available twitter messages. If you have any experience or suggestions, please share. Thanks.

推荐答案

如果您有包含指向foursquare链接的公开推文,则可以通过发出HEAD请求来解决foursquare短链接(4sq.com/XXXXXX).头请求将返回带有签入ID和签名的URL.您可以使用这两个值通过foursquare API/checkins/端点检索签入对象.每小时仅允许您访问其中的500个.

If you have publicly available tweets containing links to foursquare, you can resolve the foursquare short links (4sq.com/XXXXXX) by making a HEAD request. The head request will return a URL with a check-in ID and a signature. You can use those two values to retrieve a check-in object via the foursquare API /checkins/ endpoint. You're only allowed to access 500 of these per hour.

您必须同时遵守Twitter和foursquare服务条款-在Fourquare的情况下,您不得向任何人显示此信息,也不得将任何用户信息保留3个小时以上(因为用户未授权您的应用程序.)

You must abide by both the Twitter and foursquare terms of service -- in fourquare's case, you may not display this information to anyone, nor may you retain any user information for more than 3 hours (since the user has not authorized your application).

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

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