--> Image Liked!
--> Invalid Like Element!
Replace the xpaths with these one in the like_util.py like_image function:
def like_image(browser, username, blacklist, logger, logfolder):
...
like_xpath = "//article//button[contains(@class, 'Heart')]/span[text()='Like']/.."
unlike_xpath = "//article//button[contains(@class, 'Heart')]/span[text()='Unlike']/.."
spans = [x.text.lower() for x in browser.find_elements_by_xpath("//article//button[contains(@class, 'Heart')]/span")]
...
@HansDaigle is working also with this
like_xpath = "//button/span[text()='Like']/.."
unlike_xpath = "//button/span[text()='Unlike']"
# fetch spans fast
spans = [x.text.lower() for x in browser.find_elements_by_xpath("//article//button/span")]
Yep, gettin this one as well
Me as well.
Same
Same for me Today .
@HansDaigle this guy has the right solution!! Thank you!
def like_image(browser, username, blacklist, logger, logfolder):
...
like_xpath = "//article//button[contains(@class, 'Heart')]/span[text()='Like']/.."
unlike_xpath = "//article//button[contains(@class, 'Heart')]/span[text()='Unlike']/.."
spans = [x.text.lower() for x in browser.find_elements_by_xpath("//article//button[contains(@class, 'Heart')]/span")]
...
Putting that in the like_util.py is the right solution.
@HansDaigle Thanks man it's working again, please raise a PR for this.
Works
@HansDaigle Works!
@ArdyBeheshti great job, can you PR that ?
It's already in master guys 馃憤!
It isn't working for me when the post is a collection
Most helpful comment
@HansDaigle is working also with this