Search = self.http_base.get((name=self.profile_name), params=.jpg', 'wb') as f:Ĭontent_of_picture = self.http_base.get(link, stream=True).raw Raise Error if the Profile is private and not following by viewer :param profile_name: The profile name that will searchĭef _exit_(self, exc_type, exc_val, exc_tb):Ĭhecking Status code, Taking number of posts, Privacy and followed by viewer
:param folder: Folder name that will save the posts :param password: Password for Log-in in Instagram :param username: Username or E-mail for Log-in in Instagram Using threads and multiprocessing improving the execution speedįrom import NoSuchElementException, TimeoutExceptionįrom import WebDriverWaitįrom import expected_conditions as ECįrom import Byįrom concurrent.futures import ThreadPoolExecutorĭef _init_(self, username: str, password: str, folder: Path, profile_name: str): Log in in instragram using selenium and navigate to the profileĬhecking the availability of Instagram profile if it's private or existingĬreates a folder with the name of your choice Python script that can downloads public and private profiles images and videos, like Gallery with photos or videos.