You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to download images through this instaloader --filename-pattern={date_utc}_UTC_{profile} --post-filter="'4 letters' in caption" --no-metadata-json --no-compress-json <profile-name>
I got this error
[170/1382] Traceback (most recent call last):
File "d:\python 35\lib\runpy.py", line 184, in run_module_as_main
"main", mod_spec)
File "d:\python 35\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\Python 35\Scripts\instaloader.exe_main.py", line 9, in
File "d:\python 35\lib\site-packages\instaloader_main.py", line 388, in main
storyitem_filter_str=args.storyitem_filter)
File "d:\python 35\lib\site-packages\instaloader_main_.py", line 171, in main
download_stories, fast_update, post_filter, storyitem_filter)
File "d:\python 35\lib\site-packages\instaloader\instaloader.py", line 850, in download_profiles
if post_filter is not None and not post_filter(post):
File "d:\python 35\lib\site-packages\instaloader_main.py", line 54, in filterfunc
return bool(eval(compiled_filter, {'item': item, 'datetime': datetime.datetime}))
File "", line 1, in
TypeError: argument of type 'NoneType' is not iterable
Running Instaloader 4.1.1
This kind of error is not handled? or is it an issue from my end?
The text was updated successfully, but these errors were encountered:
--post-filter="'4 letters' in caption" fails with a TypeError exception if caption is None. Better use --post-filter="caption and '4 letters' in caption".
--post-filter="'4 letters' in caption" fails with a TypeError exception if caption is None. Better use --post-filter="caption and '4 letters' in caption".
Anyway I want to keep this issue open since I like your suggestion of catching exceptions that are raised during evaluation of the --post-filter, instead of failing and terminating the whole program.
While trying to download images through this
instaloader --filename-pattern={date_utc}_UTC_{profile} --post-filter="'4 letters' in caption" --no-metadata-json --no-compress-json <profile-name>
I got this error
[170/1382] Traceback (most recent call last):
File "d:\python 35\lib\runpy.py", line 184, in run_module_as_main
"main", mod_spec)
File "d:\python 35\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\Python 35\Scripts\instaloader.exe_main.py", line 9, in
File "d:\python 35\lib\site-packages\instaloader_main.py", line 388, in main
storyitem_filter_str=args.storyitem_filter)
File "d:\python 35\lib\site-packages\instaloader_main_.py", line 171, in main
download_stories, fast_update, post_filter, storyitem_filter)
File "d:\python 35\lib\site-packages\instaloader\instaloader.py", line 850, in download_profiles
if post_filter is not None and not post_filter(post):
File "d:\python 35\lib\site-packages\instaloader_main.py", line 54, in filterfunc
return bool(eval(compiled_filter, {'item': item, 'datetime': datetime.datetime}))
File "", line 1, in
TypeError: argument of type 'NoneType' is not iterable
Running Instaloader 4.1.1
This kind of error is not handled? or is it an issue from my end?
The text was updated successfully, but these errors were encountered: