Python 3 Web Scraping Script to Scrape Instagram Posts & Images From Username,Hashtags & Locations Full Project For Beginners

 

 

pip install instagram-explore

 

 

app.py

 

 

# import the modules
import instagram_explore as ie
import json

# search user name
result = ie.user('timesofindia')

parsed_data= json.dumps(result, indent = 4,
						sort_keys = True)

# displaying the data
print(parsed_data[15:400])

 

 

# importing the modules
import instagram_explore as ie
import json

res = ie.user_images('timesofindia')

parsed_data = json.dumps(res, indent = 4,
						sort_keys = True)

# displaying the data
print(parsed_data)

 

 

# importing the modules
import instagram_explore as ie
import json

# using the tag method
result = ie.tag('Binod')

parsed_data = json.dumps(result, indent = 4,
						sort_keys = True)

# displaying the data
print(parsed_data)

 

 

# importing the modules
import instagram_explore as ie
import json

# Search user name
result = ie.tag_images('Binod')

parsed_data = json.dumps(result, indent = 4,
						sort_keys = True)

# displaying the data
print(parsed_data)

Leave a Reply