althonos / InstaLooter

Another API-less Instagram pictures and videos downloader.
GNU General Public License v3.0
2k stars 259 forks source link

Cannot get user | user not found? #329

Open danielslux opened 3 years ago

danielslux commented 3 years ago

Library version

2.4.4:

instalooter v2.4.4

Environment

Describe here your environment, including:

Error description - installation (not applicable)

If you have an issue with installation, make sure you use a recent setuptools version before filing a bug ! If the error is still there, describe the command you used to install, and make sure you reported your environment in details. In particular, if you encounter a critical error with the CLI, please post the program output when running with the --traceback flag.

Error description - runtime

If you have an issue at runtime, include the required information below: I am using instalooter to gather videos from Instagram (then use moviepy to put the together but that's irrelevant because instalooter was working before) Instalooter returns this error: "Traceback (most recent call last): File "C:\Users\Danielslux\Documents\DanielsLuxBot\main.py", line 125, in schedule.run_pending() File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule__init.py", line 563, in run_pending default_scheduler.run_pending() File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule__init__.py", line 94, in run_pending self._run_job(job) File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule\init.py", line 147, in _run_job ret = job.run() File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule\init__.py", line 466, in run ret = self.job_func() File "C:\Users\Danielslux\Documents\DanielsLuxBot\main.py", line 114, in attemptRoutine routine() File "C:\Users\Danielslux\Documents\DanielsLuxBot\main.py", line 67, in routine scrapeVideos(username = IG_USERNAME, File "C:\Users\Danielslux\Documents\DanielsLuxBot\scrape_videos.py", line 32, in scrapeVideos numDowloaded = looter.download(output_folder, media_count=30, timeframe=timeframe) File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\instalooter\looters.py", line 451, in download pages_iterator = self.pages() # type: Iterable[Dict[Text, Any]] File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\instalooter\looters.py", line 724, in pages it = ProfileIterator.from_username(self._username, self.session) File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\instalooter\pages.py", line 179, in from_username raise ValueError("user not found: '{}'".format(username)) ValueError: user not found: 'daquan'"

Reproducible test case (Not applicable)

Are you using the CLI ? If so, include a command that can be used to re-raise the error, with actual arguments anybody can try:

instalooter ...

Are you using the API ? If so, include a small snippet that can be used to re-raise the error:

from instalooter.looters import ...

Expected behaviour

What's supposed to happen ? That's were you can ask for a new feature as well Its supposed to grab videos from users i follow from Instagram and download them. (This worked before, I didn't alter the code instalooter just decided not to work for some reason)

Actual behaviour

What's actually happening ? Leave empty if asking for a new feature Returns Error: "Traceback (most recent call last): File "C:\Users\Danielslux\Documents\DanielsLuxBot\main.py", line 125, in schedule.run_pending() File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule__init.py", line 563, in run_pending default_scheduler.run_pending() File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule__init__.py", line 94, in run_pending self._run_job(job) File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule\init.py", line 147, in _run_job ret = job.run() File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule\init__.py", line 466, in run ret = self.job_func() File "C:\Users\Danielslux\Documents\DanielsLuxBot\main.py", line 114, in attemptRoutine routine() File "C:\Users\Danielslux\Documents\DanielsLuxBot\main.py", line 67, in routine scrapeVideos(username = IG_USERNAME, File "C:\Users\Danielslux\Documents\DanielsLuxBot\scrape_videos.py", line 32, in scrapeVideos numDowloaded = looter.download(output_folder, media_count=30, timeframe=timeframe) File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\instalooter\looters.py", line 451, in download pages_iterator = self.pages() # type: Iterable[Dict[Text, Any]] File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\instalooter\looters.py", line 724, in pages it = ProfileIterator.from_username(self._username, self.session) File "C:\Users\Danielslux\AppData\Local\Programs\Python\Python39\lib\site-packages\instalooter\pages.py", line 179, in from_username raise ValueError("user not found: '{}'".format(username)) ValueError: user not found: 'daquan'"