Skip to main content

Social::Instagram::Geo - Instagram posts scraper in a specified location

Social::Instagram::Geo

Social::Instagram::Geo scraper overview

Social::Instagram::GeoSocial::Instagram::Geo - scrapes posts from Instagram in a specified location. Allows you to organize mass data scraping from user posts. Among the collected data are links, coordinates, phone numbers, geolocation names, etc. The full list of collected data is in the corresponding section.

A-Parser functionality allows you to save parsing settings for Social::Instagram::Geo scraper for further use (presets), set up a parsing schedule, and much more.

Saving results is possible in the format and structure that 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.

Authorization data information!

info

The scraper uses data from an authorized account. To work with the scraper, it is necessary to specify a value for the option: cookie. Similarly to the scraper Social::Instagram::Profile

List of collected data

  • Location ID
  • Geolocation name
  • Phone
  • Website link
  • Category
  • Coordinates
  • Address
  • City
  • Phone
  • Zip code
  • Array of posts
    • Post type
    • Post link
    • Text
    • Publication date
    • Number of comments
    • Number of likes
    • Icon link
    • Height and width

Example of the result:

https://www.instagram.com/explore/locations/105682735212415/NYC/: NYC
https://www.instagram.com/p/CsGvZ-JuFFp/
https://www.instagram.com/p/CsEJfGoOexN/
https://www.instagram.com/p/CsG2dg0LLpT/
https://www.instagram.com/p/CsB426FsFbw/
https://www.instagram.com/p/Cr94CYAuann/
https://www.instagram.com/p/CsFaRsYNsJx/
https://www.instagram.com/p/CsEVuMJoTRs/
https://www.instagram.com/p/CsEeR40vmV4/
https://www.instagram.com/p/CsETicON20r/
https://www.instagram.com/p/CsDVVGEou9q/
https://www.instagram.com/p/Cr_BUIsO7oe/
https://www.instagram.com/p/CsEjjPUr5Pf/
https://www.instagram.com/p/CsA-wtXsENn/
https://www.instagram.com/p/CsD1EvfI2q4/
https://www.instagram.com/p/CsEMt7ANftu/
https://www.instagram.com/p/CsEU3zErxa0/
https://www.instagram.com/p/CsE06QWInBR/
https://www.instagram.com/p/CsEfqP6L4XS/
https://www.instagram.com/p/CsERmBExTT_/
https://www.instagram.com/p/CsFk2u9qQqI/
https://www.instagram.com/p/CsGNmE_u00b/

Use cases

  • Collecting posts by geolocation

Examples of requests

  • As requests, you need to specify a link to the geolocation, for example:
https://www.instagram.com/explore/locations/105682735212415/NYC/  
https://www.instagram.com/explore/locations/212898659/kyiv-ukraine/

Output options

Result format:

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

Example of the result:

https://www.instagram.com/p/CsEJfGoOexN/
https://www.instagram.com/p/CsGvZ-JuFFp/
https://www.instagram.com/p/CsG2dg0LLpT/
https://www.instagram.com/p/CsB426FsFbw/
https://www.instagram.com/p/CsFaRsYNsJx/
https://www.instagram.com/p/Cr94CYAuann/
https://www.instagram.com/p/CsEVuMJoTRs/
https://www.instagram.com/p/CsEMt7ANftu/
https://www.instagram.com/p/CsEeR40vmV4/
https://www.instagram.com/p/CsETicON20r/
https://www.instagram.com/p/CsDorQsrsv0/
https://www.instagram.com/p/CsGNmE_u00b/
https://www.instagram.com/p/CsEjjPUr5Pf/
https://www.instagram.com/p/CsDVVGEou9q/
https://www.instagram.com/p/CsD1EvfI2q4/
https://www.instagram.com/p/Cr_BUIsO7oe/
https://www.instagram.com/p/CsEB_rKuuG2/
https://www.instagram.com/p/CsETXjsPu_s/
https://www.instagram.com/p/CsERBkMvLyq/
https://www.instagram.com/p/CsA-wtXsENn/
https://www.instagram.com/p/CsE06QWInBR/

Possible settings

ParameterDefault valueDescription
cookieIt is necessary to specify Cookie in advance
x-csrftokenAbility to specify x-csrftoken (if necessary)
x-ig-app-id936619743392459Ability to specify x-ig-app-id (if necessary)
Posts pages count1Number of pages with posts