Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to use --post-filter to exclude a post from a batch :saved download? #2262

Open
0nobody0 opened this issue May 14, 2024 · 1 comment
Labels
question Question

Comments

@0nobody0
Copy link

hello,

i ran into an issue that causes a :saved download - instaloader --login=[username] :saved --slide 1 --no-compress-json - to fail in the middle of the process: #2161 (comment)

is it possible to run instaloader using --post-filter to skip the post causing the error? perhaps using the shortcode property?

i tried instaloader --login=[username] :saved --slide 1 --no-compress-json --post-filter="shortcode!=[ShortCode]" but instaloader returned Invalid filter: [ShortCode] not a Post attribute.

any help is greatly appreciated

@0nobody0 0nobody0 added the question Question label May 14, 2024
@0nobody0
Copy link
Author

it looks like there may have been missing quotes around the shortcode. just tried instaloader --login=[username] :saved --slide 1 --no-compress-json --post-filter="shortcode!='[ShortCode]'" and it seems to be working, but it will be a while until it gets to the video that threw the original TypeError: expected string or bytes-like object, got 'NoneType'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question
Projects
None yet
Development

No branches or pull requests

1 participant