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

Scraper overview
Social::Instagram::Tag – scrapes 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 author's profile link, the number of likes on it, and the time it was created.You can use automatic query multiplication, substitution of subqueries from files, iteration of alphanumeric combinations and lists to obtain the maximum possible number of results. Using results filtering you can immediately clean the result by removing all unnecessary garbage (using negative keywords).
The A-Parser functionality allows you to save the scraping settings of the Social::Instagram::Tag scraper for future use (presets), set a scraping 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.
The scraper uses data from an authorized account. To operate the scraper, you must specify a value for the cookie option.
Scraper use cases
Collecting all posts by tags

- Override the Count of pages with posts option, select
100in the list. - Override the Result format option, specify
$posts.format('$link\n')as the value. - 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
Configuration
Obtaining the mandatory option for authorization
Spoiler: how to find the cookie?
Go to any profile after opening debug mode by pressing F12.
Using the string graphql/query (json type), look for the required request where the values for the scraper are stored.
Go to the request and copy the value from the cookie parameter.

Queries
You must specify a tag as queries, for example:
sport
cpu
Output results examples
A-Parser supports flexible result formatting thanks to the built-in Template Toolkit templating engine, 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')
Result example:
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')
Result example:
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
| Parameter | Default value | Description |
|---|---|---|
| Count of pages with posts | 10 | Number of pages with posts |
| Treat disconnect as IP ban | ☑ | Consider connection drop as IP ban |