Scraping instagram accounts based on location?

se7ens

Newbie
Joined
Jun 24, 2018
Messages
17
Reaction score
3
Hi guys, been racking my brains about this but couldnt really figure out a way to do this. So wanted to check with the community. I have a requirement to scrape user accounts based on location. Now, the instagram APIs does not seem to provide the location of a user, which makes this task fairly complicated imo. These are the approaches that I have thought of:

1. Scrape a profile's recent posts. If the posts are geo-tagged, then use that information to decide if the user is from the location I want. Downside is, not all posts are going to be geo-tagged. And the user maybe on vacation or something, instead of originally being from the location I want them to be from.

2. Scrape posts by locations. I believe this is possbiel. Then scrape the users who posted these posts or liked these posts. Downside is, again could be a lot of false positives.

3. Scan the bio of a profile and look for keywords for the locations that I am interested in. Again, downside is the dependency of a user having their location included in the bio.

Apart from these methods, are there any other more reliable approaches that I can follow to scrape instagram profiles based on location?
 
why dont you spidercrawl for posts that are geotagged within the location and then crawl their followers/following (if less than 1k for example) and check them. repeat that and store the accounts that are geotagged more than once or twice in the location needed. use the google maps api and choose a distance from location you are trying to scrape from and compare the geotagged locations with that to find if they are in range.
 
Hashtags of your target country.
Search for small ones that will only be used by people in that country (small restaurants, bar, etc)
Followers of small restaurants.
 
Appreciate the responses guys! will try out these methods and see
 
Hi guys, been racking my brains about this but couldnt really figure out a way to do this. So wanted to check with the community. I have a requirement to scrape user accounts based on location. Now, the instagram APIs does not seem to provide the location of a user, which makes this task fairly complicated imo. These are the approaches that I have thought of:

1. Scrape a profile's recent posts. If the posts are geo-tagged, then use that information to decide if the user is from the location I want. Downside is, not all posts are going to be geo-tagged. And the user maybe on vacation or something, instead of originally being from the location I want them to be from.

2. Scrape posts by locations. I believe this is possbiel. Then scrape the users who posted these posts or liked these posts. Downside is, again could be a lot of false positives.

3. Scan the bio of a profile and look for keywords for the locations that I am interested in. Again, downside is the dependency of a user having their location included in the bio.

Apart from these methods, are there any other more reliable approaches that I can follow to scrape instagram profiles based on location?
So Idk if this is what you need but the way I'd do it is to just scrape all the followers from an IG account and geotag their location based off of post. You can use a location algorithm to triangulate a location given multiple geopoints as well as data from bio. Then filter and sort using that sample.

I remember that I tried scraping by location in the pass, and the problem was it gave me a lot of tourist who just visited there once but then the rest of their photos was tagged in their home city/country. So then I used the technique I wrote about above and they were very accurate at 98%.

Hope this helps!
 
Best two ways are to search for very location specific hashtags that you can be sure are 99% are only used for people from that area. #unknownlocalsportsteam is a good one, #disneyland is not.

Then the other way is explore location scrapes. Again, pick a good explore location and you can be 99% certain it is mostly locals using it explorelocation:unknownrestaurant is good location:newyork is not

Business accounts can include a location, which may be useful if you only wanted businesses.
 
Hashtags of your target country.
Search for small ones that will only be used by people in that country (small restaurants, bar, etc)
Followers of small restaurants.
this is really effective, search for small groups of people of specific area
 
Scout spiders' sources with commands to get specific accounts with those specific keywords being used at description or in some account post.
I send you a tutorial via PM.
 
Back
Top