I need to run this command instagram-scraper "+ username +" --media-metadata --media-types none
inside a python executable file as you see bellow is the code I'm using to do that and it's working fine when I run it like that py test.py, but after I turn it to an executable file using the PyInstaller command: pyinstaller -F test.py, it doesn't work and it doesn't return any error, the console disapears directly after execution.
import os
def getFollowers(username):
os.system("instagram-scraper "+ username +" --media-metadata --media-types none")
getFollowers("oukebdane_med_anis")
cmdconsole (command window), and then manually running the executable inside it. This will allow you to see any error messages. The most likely cause is that theinstagram-scraperutility isn't in the current directory.instagram-scraperwithpip install instagram-scraperin your Python environment BUT the Python environment used byPyInstallerdoes have theinstagram-scraperexecutables...