This function filters by hashtags and returns all posts that have the same hashtag string
ig_get_hashtag_feed(hashtag, max_id = NULL, ranked_content = TRUE, return_df = TRUE, paginate = TRUE, max_pages = 10, verbose = FALSE)
hashtag | character; do not include the hashtag (pound sign) at the beginning of the string |
---|---|
max_id | integer; the unique id identifying the oldest post that you would want to retrieve in this function call |
ranked_content | logical; do you want the feed content to be sorted by rank? |
return_df | logical; do you want to return the results as a |
paginate | logical; do you want to paginate through results or just return the first page? |
max_pages | integer; a limit to the number of pages to retrieve from paginated endpoints. Instagram feeds have the potential to paginate forever, so by default we stop after pulling 10 pages. If you would like more or less pages returned, then modify this argument. |
verbose | logical; do you want informative messages? |
beliebers_tagged_posts <- ig_get_hashtag_feed("beliebers")#>#> #>#> Error: Status: fail #> Message: login_required