Open edwardsdean opened 2 years ago
@edwardsdean, getting this error. I tried playing around with the code but cannot resolve it. Any thoughts?
Traceback (most recent call last):
File "Z:\JustForFans\app.py", line 199, in
I also get the same KeyError: 'src" error.
i currently dont have any subscriptions on JustFor Fans, so i will be unable to work on it
i currently dont have any subscriptions on JustFor Fans, so i will be unable to work on it
No problem. Thanks for letting us know.
The KeyError: 'src' is because part of image galleries have the image url inside parameter "data-lazy" instead of src. You can get rid of this problem by replacing the code line
imgsrc = img.attrs['src']
with something like
if 'src' in img.attrs:
imgsrc = img.attrs['src']
elif 'data-lazy' in img.attrs:
imgsrc = img.attrs['data-lazy']
else:
print("no image source, skipping")
continue
The KeyError: 'src' is because part of image galleries have the image url inside parameter "data-lazy" instead of src. You can get rid of this problem by replacing the code line
imgsrc = img.attrs['src']
with something like
if 'src' in img.attrs: imgsrc = img.attrs['src'] elif 'data-lazy' in img.attrs: imgsrc = img.attrs['data-lazy'] else: print("no image source, skipping") continue
I have added this change to my branch, but am still unable to test it working, let me know if this works now
That code does work but you need to delete the imgsrc = img.attrs['src']
line for it to work properly.
Which line is this? the only line with that is in the if block
It works fine. But if i start downloading a particular profile as described with userid and hashtag it will downloadload the other profiles I'm subscribed to, too. But I want to download only one particular profile. What I do wrong?
It works fine. But if i start downloading a particular profile as described with userid and hashtag it will downloadload the other profiles I'm subscribed to, too. But I want to download only one particular profile. What I do wrong?
It solved the problem for me when I "unfollow" the other creators.
i have noticed some files get stuck downloading but for the most part it is working now