I want to crawl all messages of every group on Yammer (including All Company Group)

前端 未结 2 876
我在风中等你
我在风中等你 2021-01-27 21:05
  1. We are trying to crawl all messages of every group on Yammer (including All Company Group) using https://www.yammer.com/api/v1/messages.json?group_id=<>&access_t

相关标签:
2条回答
  • 2021-01-27 21:29

    The best way to get this information is to use the Data Export API. This API is available to paid networks and outputs a ZIP file containing CSV files containing all messages, and list of users. You can pass a parameter called "since" to this API and it'll only provide data since a particular time. The users.csv file also includes a joined at date.

    If you attempt to iterate over messages you will hit some limits. These limits are technical in nature and you would need to revert to the search API to find much older messages. Unfortunately you will have to put up with these limitations if you are dealing with the free version of Yammer as the data export is only available with the paid version.

    0 讨论(0)
  • 2021-01-27 21:35

    I achieved this a different way. I used the export API to get a list of all of the groups.

    https://export.yammer.com/api/v1/export?model=Group&amp;access_token=
    

    Then I looped through the list of groups and pulled all of the message data for each group and combined them into one *.json

    https://www.yammer.com/api/v1/messages/in_group/###.json
    

    Where ### is the group ID extracted from the groups export data.

    0 讨论(0)
提交回复
热议问题