Skip to main content

Social::Instagram::Tag - Posts scraper by tags on Instagram


Scraper overview

Social::Instagram::TagSocial::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, a link to the author's profile, the number of likes under it, and the time it was created are also collected.

You can use automatic query multiplication, substitution of subqueries from files, enumeration of alphanumeric combinations and lists to get the maximum possible number of results. By using results filtering, you can immediately clean up the result by removing all unnecessary garbage (using minus-words).

A-Parser functionality allows you to save the settings of the Social::Instagram::Tag scraper for further use (presets), set a scraping schedule, and much more.

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

Scraper use cases

Collecting all posts by tags

Use case
  1. Override the Count of pages with posts option, select 100 from 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 the example into A-Parser


Collected data

  • Avatar link
  • Number of posts

Two arrays of regular posts and top posts:

  • Post type
  • Post link
  • Text
  • Publication date (in Unix format)
  • Number of comments
  • Number of likes
  • Icon link
  • Image width and height
  • Avatar link
  • Number of posts

Use cases

  • Collecting posts by tags


Tags should be specified as queries, for example:


Output results examples

A-Parser supports flexible formatting of results thanks to the built-in Template Toolkit, which allows it to output results in any form, as well as in a structured form, for example, CSV or JSON.

Default output

Result format:

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

Result example:

cpu: total posts - 303657  

Top posts links

Result format:


Result example:

Possible settings

ParameterDefault valueDescription
Count of pages with posts10Number of pages with posts
Treat disconnect as IP banConsider disconnection as IP ban