Skip to content

Python script to retrieve Instagram photos queried by location.

Notifications You must be signed in to change notification settings

dhth/Instagram-API-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram-API-python

Python script to retrieve Instagram photos queried by location or tags. Sqlite database used for continuation.

Libraries used:

Authentication: Client ID and Client Secret are provided by Instagram on registering the client. These client details are first used to get an access token generated on-demand by Instagram. This access token is then used to make API calls.

Usage: 'geolocation-python' library is used to get the coordinates of the queried location. These coordinates are then plugged into the media search API call provided by Instagram. Data returned is in JSON format. Image urls are extracted and the binary response of each HTTP request is saved as a .jpg file.

Sqlite database is used to store urls. One table stores all the urls in the initial run and another table keeps track of images downloaded in each subsequent run.

About

Python script to retrieve Instagram photos queried by location.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages