get_media: Return media and media metadata

Description Usage Arguments Value Examples

View source: R/get_media.R

Description

get_media return media and media metadata based on search configuration.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
get_media(
  username = NULL,
  tag = NULL,
  location = NULL,
  following_input = FALSE,
  media_type = "none",
  your_username = NULL,
  your_password = NULL,
  max = NULL,
  include_location = FALSE,
  interactive = NULL,
  filter = NULL,
  filter_location = NULL,
  retry_download = FALSE
)

Arguments

username

String vector. Specify a username account

tag

String. Scrapes the specified hashtag for media.

location

String. Scrapes the specified instagram location-id for media.

following_input

Logical value. Use profiles followed by login-user as input

media_type

String vector. Specify media types to scrape. Valid values are image, video, story (story-image & story-video), broadcast or none. Stories require a your_username and your_password to be defined.

your_username

String. Instagram login user

your_password

String. Instagram login password

max

Maximum number of items to scrape.

include_location

Logical value. Includes location metadata when saving media metadata.

interactive

Enables interactive login challenge solving. Has 2 modes: SMS and Email

filter

String vector. Scrapes the specified hashtag within a user's media.

filter_location

String vector.Filter scrape queries by command line location(s) ids

retry_download

Logical values. Retry download attempts endlessly when errors are received

Value

A tibble and profile metadata

Examples

1
2
3
4
5
## Not run: 
get_media(following_input = TRUE, your_username = "xxxx", your_password = "123")
get_media(username = "ABC", max = 10, media = "image")

## End(Not run)

technaut-education/instascraper documentation built on June 13, 2021, 7:42 a.m.