InstaPy / instapy-docker

🐳 Docker config and documentation for running InstaPy with Docker
GNU General Public License v3.0
188 stars 80 forks source link

Update xpath_compile for liking images #76

Closed brammittendorff closed 4 years ago

brammittendorff commented 4 years ago

The problem is with instapy-docker is that it has a outdated xpath_compile.py. You will need the latest version the diff is:

109c109
< xpath["get_links_from_feed"] = {"get_links": "//article/div[3]/div[2]/a"}
---
> xpath["get_links_from_feed"] = {"get_links": "//article/div/div[3]/div[2]/a"}
145,146c145,146
<     "like": "//section/span/button/div[*[local-name()='svg']/@aria-label='Like']",
<     "unlike": "//section/span/button/div[*[local-name()='svg']/@aria-label='Unlike']",
---
>     "like": "//section/span/button/div/span[*[local-name()='svg']/@aria-label='Like']",
>     "unlike": "//section/span/button/div/span[*[local-name()='svg']/@aria-label='Unlike']",
190c190
< }
\ No newline at end of file
---
> }