def getTopPosts(self): for hashtag in self.hashtags: self.browser.get(\'https://www.instagram.com/explore/tags/\'+hashtag+\'/\') time.sleep(5)