Skip to content

fix_xpath_likers_from_photo - #4734

Merged
breuerfelix merged 2 commits into
InstaPy:devfrom
christophe-duc:fix_xpath_likers_from_photo
Jul 31, 2019
Merged

fix_xpath_likers_from_photo#4734
breuerfelix merged 2 commits into
InstaPy:devfrom
christophe-duc:fix_xpath_likers_from_photo

Conversation

@christophe-duc

@christophe-duc christophe-duc commented Jul 29, 2019

Copy link
Copy Markdown
Collaborator

Screen Shot 2019-07-29 at 19 15 28

fix xpath when there is now 2 links on a post: Liked by xxx and 17,234 others

we check first if the 2nd link is present (others) if not we fallback to the old way

…thers

we check first if the 2nd link is present (others) if not we fallback to the old way
Comment thread instapy/commenters_util.py Outdated
""" Get the list of users from the 'Likes' dialog of a photo """

liked_counter_button = "//div/article/div[2]/section[2]/div/div/a"
second_counter_button = "//div/article/div[2]/section[2]/div/div/button"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you put that into the xpath compile file ? please ? :)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, no problem. done. thanks!

@breuerfelix
breuerfelix merged commit 655b39d into InstaPy:dev Jul 31, 2019
@christophe-duc
christophe-duc deleted the fix_xpath_likers_from_photo branch July 31, 2019 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants