Skip to main content

Social::Instagram::Tag - Instagram post parser by tags

Social::Instagram::Tag

Parser overview

Social::Instagram::TagSocial::Instagram::Tag – parses posts by tags from Instagram. Automated collection of all data: post type, text, publication date, number of comments, number of likes, and much more. Along with the comment text, it also collects the link to the author's profile, the number of likes under it, and the time it was created.

You can use automatic query expansion, substitution of subqueries from files, enumeration of alphanumeric combinations and lists to get the maximum possible number of results. Using results filtering you can immediately clean the result by removing all unnecessary junk (using negative words).

A-Parser functionality allows you to save parsing settings for the Social::Instagram::Tag parser for future use (presets), set a parsing schedule, and much more.

Saving results is possible in the form and structure you need, thanks to the built-in powerful Template Toolkit which allows you to apply additional logic to the results and output data in various formats, including JSON, SQL, and CSV.

note

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

Use cases for the parser

Collecting all posts by tags

Usage example
  1. Override the Count of pages with posts option, select 100 in the list.
  2. Override the Result format option, specify $posts.format('$link\n') as the value.
  3. Specify tags as queries.
Download example

How to import an example into A-Parser

eJx1U01v2zAM/S9CgK5AEKSHXXxLAwTokNVdk56SHAibNrTIoibJWQvD/72U7NhJ
P24i+fj4KJKN8OCO7smiQ+9EsmuEiW+RiBwLqJUXU2HAOrQhvBMbyiSoJHnQzkNp
oUqSLZQMGuCN8G8GmYBOaK3MkYMyZ9tAiRnVOlCeQNWMuZvP2+8TCrIVeNbTyehz
xMSQ827WRX/cTJTUx/1e39yK9nCYig7vVjEc4XezvqkhuIETbimUkApH94qtR6hi
kRw8hui5zu3MvwYGyHPpJWlQXYXwLWPVFy3/RZGaGMtPK9GtLFXs8hgJgvPtrG4n
JtEWTFHH3D9djkgKUA6nwrHUFbCQ/GNEerTgyaYm6GF/I0gvlFrjCdUIi/z3tVQ5
z3BRcNJDn/g1JP3E0Q7tXZbiYf23rGFgidZ9+nvMymlN5fkzlKykZ9st4w4kYs7O
I6IZ/uwxwCqyOJTpmfvqvKYGddiMcWQLM7qu2rgay7UzI13IMu237Yys9ZZvIdVL
qozC0JeuleKxOHwe12Ph+jEEYxT4MXkZS1xdkSdS7temk2qs5PX7GQRW/JOXVXvK
DJR6eV5fRsS4Umxkpt5rZ8gG8oy3tSTeI+6lPQwnOxx2893hJk3Lg/rrnrqE0FWA
s4+/x/EU+Ejbd0hbdis=

Collected data

Two arrays with regular posts and posts from TOP:

  • Post type
  • Link to post
  • Text
  • Publication date (in Unix format)
  • Number of comments
  • Number of likes
  • Link to icon
  • Image width and height
  • Link to avatar
  • Number of posts

Use cases

  • Collecting posts by tags

Setup

Obtaining the mandatory option for authorization

Spoiler: how to find the cookie?

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

Queries

You must specify a tag as a query, for example:

sport  
cpu

Output results examples

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

Default output

Result format:

$query:\nPosts:\n$posts.format('$link\n')

Example result:

Posts:  
https://www.instagram.com/p/B0FtUJboZC0/
https://www.instagram.com/p/B0Fs7maCIvq/
https://www.instagram.com/p/B0FszBRgOoS/
https://www.instagram.com/p/B0FrgVTBgFI/
https://www.instagram.com/p/B0FqeKvBSjC/
https://www.instagram.com/p/B0FogPGnOIG/
https://www.instagram.com/p/B0FoHSuCSUr/
https://www.instagram.com/p/B0Fl5JWgWts/
https://www.instagram.com/p/B0Fj_P0ji83/
https://www.instagram.com/p/B0Fgn5YHCiC/
https://www.instagram.com/p/B0Fd4uvAOyf/
https://www.instagram.com/p/B0FdfGjnVVs/
https://www.instagram.com/p/B0FdLEDgrTe/
https://www.instagram.com/p/B0FdEORCa0Z/

Links to posts from top

Result format:

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

Example result:

https://www.instagram.com/p/CMMKTr4pi3o/
https://www.instagram.com/p/CMMKTCGHZ1c/
https://www.instagram.com/p/CMMKStkF59q/
https://www.instagram.com/p/CMMKRNun5Jg/
https://www.instagram.com/p/CMMKRI-JTp8/
https://www.instagram.com/p/CMMKQmfBD9O/
https://www.instagram.com/p/CMMKHsiF5GT/
https://www.instagram.com/p/CMMKQUpHXy4/
https://www.instagram.com/p/CMMKPL1HxTx/
https://www.instagram.com/p/CMMKOAkn1mP/

Possible settings

ParameterDefault valueDescription
Count of pages with posts10Number of pages with posts
Treat disconnect as IP banTreat connection drop as IP ban