Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update xpath_compile for liking images #76

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

brammittendorff
Copy link
Contributor

@brammittendorff brammittendorff commented Aug 5, 2020

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
---
> }

For liking images, 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
---
> }
```
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