• Stars
    star
    103
  • Rank 321,450 (Top 7 %)
  • Language
    R
  • Created over 10 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dev version of instaR package: Access to Instagram API via R

instaR: Access to Instagram API via R

This package provides a series of functions that allow R users to access Instagram's API to search for media that mention specific hashtags or were sent from a certain location, to download recent pictures from a given users, and to capture lists of followers.

IMPORTANT: according to the updated platform policy, access to most endpoints of the Instagram API (including those that return public data) requires previous approval by Instagram. More information about the permission review process can be found here.

Getting Started from GitHub

To install from github, first install the devtools package and and then run devtools::install_github("pablobarbera/instaR/instaR")

The httpuv package is needed to trigger the web request when authorizing against Instragram using instaOAuth. When configuring the client on https://instagram.com/developer/clients/ to receive your app_id and app_secret ensure the REDIRECT URI includes the trailing / e.g. http://localhost:1410/

Functionalities include:

  • Downloading pictures from users / using hashtags
  • Getting comments for individual posts
  • Getting likes for individual posts
  • Getting the most popular posts
  • Getting basic user information
  • Getting a hash tag count

For examples please see examples.R

<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1191254-10']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>

More Repositories

1

Rfacebook

Dev version of Rfacebook package: Access to Facebook API via R
R
350
star
2

twitter_ideology

Estimating Ideological Positions with Twitter Data
R
206
star
3

voter-files

Python scripts to parse U.S. voter files
Python
118
star
4

streamR

Dev version of streamR package: Access to Twitter Streaming API via R
R
106
star
5

social-media-workshop

Workshop: Collecting and Analyzing Social Media Data with R
HTML
104
star
6

Rdataviz

Materials for workshop "Data Visualization with R and ggplot2"
R
76
star
7

scholarnetwork

Extract and Visualize Google Scholar Collaboration Networks
R
76
star
8

pytwools

Python tools for the analysis of Twitter data
Python
72
star
9

quant3materials

PhD course: Quantitative Methods for Political Science III (NYU) -- Recitation Materials
R
50
star
10

workshop

Workshop: Scraping Twitter and Web Data Using R
R
47
star
11

eui-text-workshop

Methods workshop: Automated Text Analysis with R
HTML
34
star
12

echo_chambers

Replication materials for the paper "Tweeting from Left to Right: Is Online Political Communication More Than an Echo Chamber?"
R
34
star
13

POIR613-2019

Course materials: POIR 613 - Computational Social Science - USC Fall 2019
HTML
31
star
14

ECPR-SC105

ECPR Summer School: Big Data Analysis in the Social Sciences
HTML
31
star
15

POIR613-2021

Course materials: POIR 613 - Computational Social Science - USC Fall 2021
HTML
31
star
16

big-data-upf

RECSM-UPF Summer School: Social Media and Big Data Research
HTML
22
star
17

incivility-sage-open

Incivility classifier used in Theocharis et al (2020, Sage Open)
R
20
star
18

ECPR-SC104

ECPR Summer School: Automated Collection of Web and Social Data
HTML
15
star
19

NYU-AD-160J

Recitation materials for the NYU-Abu Dhabi course "Social Media and Political Participation", J-TERM 2014
R
14
star
20

text-analysis-vienna

HTML
13
star
21

social-media-upf

Summer School: Social Media and Big Data Research
HTML
13
star
22

POIR613

Course materials: POIR 613 - Computational Social Science - USC Fall 2022
HTML
10
star
23

twitter-incivility

Replication materials for the paper "A Bad Workman Blames His Tweets. The Consequences of Citizens' Uncivil Twitter Use when Interacting with Party Candidates"
R
9
star
24

POIR613-2017

2017 version of the PhD-level course POIR 613 - Computational Social Science
Makefile
8
star
25

pablobarbera.github.com

Website
HTML
7
star
26

SQL-workshop

Workshop: Querying large-scale online datasets - SQL and Google BigQuery
HTML
7
star
27

votes

Tracking Twitter Users Who "Tweet Their Vote"
R
3
star
28

icourts-workshop

Workshop materials: the use of Social Media for the study of International Courts
HTML
2
star
29

world-leaders-isq

Replication materials for the paper "The New Public Address System: Why Do World Leaders Adopt Social Media?"
Stata
2
star
30

eitm

EITM Europe Summer Instute: Social Media Research
HTML
2
star
31

zombies

Code for Zombie Outbreak Detector
R
1
star
32

corruption-psrm

Replication materials for the paper "Rooting Out Corruption or Rooting for Corruption? The Heterogeneous Electoral Consequences of Scandals"
R
1
star