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

本文是小编为大家收集整理的关于如何抓取foursquare签到的数据?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

是否可以以贪婪的方式从Foursquare抓取入住数据? (即使我与所有用户没有友谊),就像爬行公开可用的Twitter消息一样.如果您有任何经验或建议,请分享.谢谢.

推荐答案

如果您有包含指向Foursquare链接的公开可用推文,则可以通过提出HEAD请求来解决Foursquare短链接(4sq.com/xxxxxx). HEAD请求将返回带有登机ID和签名的URL.您可以使用这两个值通过Foursquare API/Checkins/Endpoint检索登机对象.您只允许每小时500个.

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

其他推荐答案

如果位置的管理器使您可以访问应用程序,则只能获取位置的签入数据.如果有的话,可以使用此处定义的实时API: .com/docs/realtime.html

其他推荐答案

否,不可能爬网数据类似于Twitter.此信息被视为个人数据,不公开.

本文地址:https://www.itbaoku.cn/post/2090858.html

问题描述

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.

推荐答案

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.

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).

其他推荐答案

You can only get the check-in data for a location if the manager of the location gives you OAuth access to your application. If you have that, you can use the real-time API defined here: https://developer.foursquare.com/docs/realtime.html

其他推荐答案

No, it is not possible to crawl check-in data similar to Twitter. This information is considered personal data and is not public.