Social::Instagram::Geo - Scraper of Instagram posts at a specified locale

Overview of the scraper
Social::Instagram::Geo – scrapes Instagram posts in the specified location. Allows for mass scraping of data from user posts. Collected data includes 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 scraping settings for the Social::Instagram::Geo scraper for future 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 templating engine 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 make the scraper work, you must specify a value for the cookie option. Similar to the Social::Instagram::Profile.
Collected data
- Location ID
- Geolocation name
- Phone number
- Link to the website
- Category
- Coordinates
- Address
- City
- Phone number
- Zip code
- Array of posts
- Post type
- Link to the post
- Text
- Publication date
- Number of comments
- Number of likes
- Icon link
- Height and width
Use cases
- Scraping posts by geolocation
Queries
Queries must 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/
Examples of result output
A-Parser supports flexible result formatting thanks to the built-in templating engine Template Toolkit, which allows it to output results in arbitrary form, as well as in a structured format, for example CSV or JSON
Default output
Result format:
$query: $name\n$posts.format('$link\n')
Result example:
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/
Result example:
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/
Available settings
| Parameter | Default value | Description |
|---|---|---|
| cookie | You must specify a Cookie beforehand | |
| x-csrftoken | Option to specify x-csrftoken (if necessary) | |
| x-ig-app-id | 936619743392459 | Option to specify x-ig-app-id (if necessary) |
| Posts pages count | 1 | Number of post pages |
| Type | Ranked/Recent | Option to select output type "Top" or "Recent" |