question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't collect likes number

See original GitHub issue

Describe the bug I tried to collect posts directly (target: shortcode) or from their feed (target: username) and for 99% of the posts likes are -1

Instaloader version `4.9b1.

EDIT: without --login likes are correctly collected, but after some posts login is required.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rocaillercommented, Dec 5, 2021

for some period of time there is a problem with -1 instead of likes count. I’m thinking… In response we get: "edge_liked_by":{"count":12344},"edge_media_preview_like":{"count":-1} and function for likes is:

    def likes(self) -> int:
        """Likes count"""
        return self._field('edge_media_preview_like', 'count')

why we aren’t using ‘edge_liked_by’ ?

0reactions
Thammuscommented, Dec 11, 2021

Duplicate of #1314.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't see the number of likes in Instagram. How can I fix it?
Instead of a 'like' count being displayed using numbers, it shows that a few users "and others" have liked a particular post.
Read more >
How to Hide Likes on Instagram (and Why It's Even an Option)
Instagram gives you the option to hide the like counts on everyone else's posts in just a few steps, so you won't see...
Read more >
Don't care for the clout? How to hide likes on Instagram
How to hide likes on your feed · Tap on the menu bar in the upper right-hand corner of your profile page and...
Read more >
Why Can't I Hide Likes On Instagram? Here's How To Fix It
To hide likes from your followers on one of your own posts, tap the three dots in the upper-right corner of the post...
Read more >
How to hide likes on Instagram, for your posts or others
You can hide the number of likes on an Instagram post by disabling the feature in the post before or after sharing it....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found