I'm trying to use the insta-scrape library for python, specifically the method to get all posts of a instagram profile.
This is the link to the library page: https://pypi.org/project/insta-scrape/
This is the link to the library doc in particular for the method get_posts: https://instascrape.readthedocs.io/en/latest/instascrape.scrapers.html#module-instascrape.scrapers.profile
My simple code is :
options = Options()
options.add_argument('--headless')
driver = webdriver.Chrome(options=options)
insta_profile = Profile('https://www.instagram.com/molteni_matteo/')
insta_profile.scrape()
list_post = insta_profile.get_posts(webdriver=driver, amount=None,
login_first=False, login_pause=60,
max_failed_scroll=300, scrape=False, scrape_pause=5)
for profile_post in list_post:
print(profile_post)
But it gives me the error :
How can i solve this problem ?