Skip to main content

Social::Instagram::Search - Instagram search scraper

Social::Instagram::Profile

Scraper overview

Social::Instagram::SearchSocial::Instagram::Search – Instagram search scraper. Collection of profiles, tags, locations.

A-Parser functionality allows you to save scraping settings for the Social::Instagram::SearchSocial::Instagram::Search scraper for further use (presets), set scraping schedules, and much more.

Results can be saved in any format and structure you need, thanks to the powerful built-in Template Toolkit which allows applying additional logic to results and outputting data in various formats, including JSON, SQL, and CSV.

note

The scraper uses data from an authorized account. To run the scraper, you must specify a value for the cookie option.

Collected data

  • Places
    • Position in search results
    • Subtitle
    • Title
    • Link to location
  • Hashtags
    • Position in search results
    • Hashtag name
    • Media count for hashtag
  • Users
    • Position in search results
    • Username
    • Link to profile
    • Verification status
    • Full name
    • Avatar link

Use cases

Configuration

Obtaining the mandatory option for authorization

Spoiler: how to find cookies?

Go to any profile after opening debug mode by pressing F12. Debug Using the string graphql/query (json type), look for the required request that contains the values for the scraper. Search Go to the request and copy the value from the cookie parameter. Values

Queries

You should specify keywords as queries:

Sport
cristiano
beauty

Output results examples

A-Parser supports flexible results formatting thanks to the built-in Template Toolkit, which allows it to output results in any form, as well as structured ones, such as CSV or JSON

Default output

Result format:

$users.format('$link\n')

Result example:

https://www.instagram.com/cristiano/
https://www.instagram.com/_cristianojunior7/
https://www.instagram.com/ronaldooo.jr7_/
https://www.instagram.com/cr7cristianoronaldo/
https://www.instagram.com/cristianojr.r7/
https://www.instagram.com/cristianoaraujo/
https://www.instagram.com/crisznec/
https://www.instagram.com/cristiano_borsi/
https://www.instagram.com/cristiano.digiacinto/
https://www.instagram.com/cristiano1011/
https://www.instagram.com/goatnaaldo75/
https://www.instagram.com/cr7winiano_/
https://www.instagram.com/cristiano.galindo/
https://www.instagram.com/cr7ir/
https://www.instagram.com/7crisr/
https://www.instagram.com/cristianofury/
https://www.instagram.com/crissevieri_timao/
https://www.instagram.com/cristyanorodrigues/

Tag names and location links

Result format:

$hashtags.format('$name\n')\n\n$places.format('$link\n')

Result example:

cristianoronaldo
christmaseve


https://www.instagram.com/explore/locations/102608941539388

Possible settings

ParameterDefault valueDescription
Use sessionUse sessions
cookieCookies must be specified beforehand