Instagram Posts

Author

Michael Achmann-Denkler

Published

November 14, 2024

Instagram offers two ways of image sharing: permanent posts and ephemeral stories. In this chapter I will offer three approaches for collecting posts: Instaloader, CrowdTangle, and Zeeschuimer.

Posts are shaped by several affordances and contain different type of media: least one image or video, often paired with text (captions). Posts may also contain an album consisting of more than one image or video. Captions may contain hashtags and / or mentions. Hashtags are used to self-organize posts on the platform, users can subscribe to hashtags and search for them. Mentions are used to link a post to another profile. Moreover, users can like, share and comment posts. Some data-collection approaches, like CrowdTangle, offer access to one image and post metrics, like the comment and like count. Instaloader, offer access to all images / videos, while being the legally most questionable approach. And then there’s the middle ground: Zeeschuimer (optionally in connection with 4CAT).

Through the following subchapters I will try to illuminate the advantages of each collection methods. For each method I will provide a manual to follow in order to collect metadata and the actual media for Instagram posts.

Tip

As of November 2024 I recommend to collect posts using Zeeschuimer or the official Meta Content Library. Our preferred approach for the 2024/25 winter semester is the combination Zeeschuimer + Import Notebook where we import the ndjson created by Zeeschuimer into a custom notebook and convert the data and download images and videos. An updated notebook for downloading album posts will be added shortly.

Zeeschuimer & 4CAT

Screenshot of Zeeschuimer

Zeeschuimer (Peeters, n.d.) and 4CAT (Peeters, Hagen, and Wahl, n.d.) are two tools developed for the https://wiki.digitalmethods.net/. The first is a firefox plugin that captures traffic when browsing websites likes Instagram or TikTok. The second, 4CAT, is an analysis platform incorporating several steps of preprocessing and further analyses. For post collection we can use the original Zeeschuimer Firefox Plugin, download the latest release from GitHub and install it in Firefox. To download Instagram posts using Zeeschuimer follow these steps (* steps are only necessary when working with 4CAT):

  1. Download and install Firefox
  2. Download and install the Plugin
  3. *Register a 4CAT Account
  4. Activate the Instagram (Posts) Switch.
  5. *Fill out the 4CAT server URL field (https://4cat.digitalhumanities.io/).
  6. Open Instagram in a new tab. Browse the profiles you’re interested in. Keep scrolling to the bottom of the profile until you reach posts at the end of your period of investigation.
  7. Download the data from the plugin or export the data to 4CAT.

Pros:

  • We do not infringe the TOS
  • Can collect data from private profiles
  • We can collect all media, also albums and videos

Cons:

  • We need to browse through the profiles
  • Practical limitations (e.g. volume, timeframe, # of profiles …)

Working with Python

Data collected using Zeeschuimer can also be exported as ndjson files. The Zeeschuimer Import Notebook provides a code example for reading the files and converting them to either 4CAT format, or a table format compatible with the above notebooks for CrowdTangle and instaloader.

The old version of the Notebook still exists. This version downloads only one image per post.

Tip

This is our preferred approach for the research seminar. We take a closer look at the Data Structure and Preprocessing of Zeeschuimer data through custom notebooks over the course of the next weeks.

Working with 4CAT

Screenshot of 4CAT

4CAT is a tool developed by the Digital Methods Initiative. The collected data can be exported to 4CAT with only the click of a button. After successfully importing the post data, the tools offers several modules. At first, download the images associated with each post with the Download images module at the bottom. Select image_url in the options tab and hit Run.

Available modules for visual analysis using 4CAT

Once the images have been downloaded more analysis options are available when clicking the More button on the right. Further, you may download images as a ZIP file and can export the posts from 4CAT in CSV format. Repeat the process with the Download Video function to access posted videos. We will be able to use the collected data using the CSV export and the media files provided in the ZIP packages. Additionally, each ZIP file contains a .metadata.json file which we may use to map filenames to media files.

The authors of Zeeschuimer and 4CAT have published a manual here.

CrowdTangle – OUTDATED

Screenshot of the CrowdTangle interface.
Warning

Meta shut down CrowdTangle in August 2024. The tool has been replaced by the Meta Content Library. Researchers can apply for access, a third party now moderates access, the Inter-university Consortium for Political and Social Research (ICPSR). I will update this page shortly.

CrowdTangle is the best option to collect IG posts – in theory. It provides legal access to Instagram data and offers several tools to export large amount of data. For a current project we’ve exported more than 500.000 public posts through a hashtag query. Unfortunately there are several restrictions: CrowdTangle is the best tool to export metadata of public posts, and captions. The abilty to collect images through the platform is limited: Image links expire after a certain amount of time, thus we need to use some makeshift approach to download the images. When we can download the images, it’s always just one per post, no matter if it’s a gallery or a single image. And let’s not talk about videos. I have written another Medium story with a step-by-step guide to CrowdTangle.

Pros:

  • Legal Access
  • We can select the time frame for export
  • Export in CSV format

Cons:

  • Only access to one image for album posts
  • Limited access to historical images, the browsing to the bottom strategy is limited
  • No videos for newer posts

References

Peeters, Stijn. n.d. Zeeschuimer.” https://doi.org/10.5281/zenodo.8399900.
Peeters, Stijn, Sal Hagen, and Dale Wahl. n.d. 4CAT Capture and Analysis Toolkit.” https://doi.org/10.5281/zenodo.8139174.

Reuse

Citation

BibTeX citation:
@online{achmann-denkler2024,
  author = {Achmann-Denkler, Michael},
  title = {Instagram {Posts}},
  date = {2024-11-14},
  url = {https://social-media-lab.net/data-collection/ig-posts.html},
  doi = {10.5281/zenodo.10039756},
  langid = {en}
}
For attribution, please cite this work as:
Achmann-Denkler, Michael. 2024. “Instagram Posts.” November 14, 2024. https://doi.org/10.5281/zenodo.10039756.