


Parser.add_argument('-T', '-target', help='Profile name to search', action='store', required=True) Parser.add_argument('-F', '-filename', help='Filename for storing data', action='store', required=True) Parser.add_argument('-P', '-password', help='Password of your account', action='store', required=True)

Parser.add_argument('-U', '-username', help='Username or your email of your account', action='store', Pool.map(self.download_video, video_data) Pool.map(self.images_download, picture_data) Print(' ready for saving images and videos!'.title()) """Using multiprocessing for Saving Images and Videos""" pyfileobj(content_of_picture, f)ĭef downloading_video_images(self) -> None: 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.
