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

XPath Out of Date #1

Closed
marcelnishihara opened this issue Feb 6, 2023 · 1 comment
Closed

XPath Out of Date #1

marcelnishihara opened this issue Feb 6, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@marcelnishihara
Copy link
Owner

Meta updated the Instagram interface for desktop systems.
In consequence, the XPaths don't work since then.
The dict below must be rebuilt and massively tested.

ig_xpath = {
'log_in_button' : '//*[@id="react-root"]/section/nav/div[2]/div/div/div[3]/div/span/a[1]/button',
'username' : '//*[@id="loginForm"]/div/div[1]/div/label/input',
'password' : '//*[@id="loginForm"]/div/div[2]/div/label/input',
'six_digit' : '//*[@id="react-root"]/section/main/div/div/div[1]/div/form/div[1]/div/label/input',
'deny_save_info' : '//*[@id="react-root"]/section/main/div/div/div/div/button',
'followers' : '//*[@id="react-root"]/section/main/div/header/section/ul/li[2]/a',
'following' : '//*[@id="react-root"]/section/main/div/header/section/ul/li[3]/a',
'css_selector' : '.FPmhX.notranslate._0imsa ',
'close_list' : '/html/body/div[5]/div/div/div[1]/div/div[2]/button'
}

@marcelnishihara marcelnishihara self-assigned this Feb 7, 2023
@marcelnishihara marcelnishihara added the bug Something isn't working label Feb 7, 2023
@marcelnishihara
Copy link
Owner Author

It was solved as you may see in the .\source\paths.json file of the branch v0.2.

[
{
"btn_sign_in": "/html/body/div[2]/div/div/div/div[1]/div/div/div/div[1]/section/nav/div[2]/div/div/div[3]/div/div[2]/div[1]/a/button",
"field_username": "/html/body/div[2]/div/div/div/div[1]/div/div/div/div[1]/section/main/div/div/div[1]/div[2]/form/div/div[1]/div/label/input",
"field_password": "/html/body/div[2]/div/div/div/div[1]/div/div/div/div[1]/section/main/div/div/div[1]/div[2]/form/div/div[2]/div/label/input",
"btn_log_in": "/html/body/div[2]/div/div/div/div[1]/div/div/div/div[1]/section/main/div/div/div[1]/div[2]/form/div/div[3]/button",
"field_2fa": "/html/body/div[2]/div/div/div/div[1]/div/div/div/div[1]/section/main/div/div/div[1]/div[2]/form/div[1]/div/label/input",
"btn_2fa": "/html/body/div[2]/div/div/div/div[1]/div/div/div/div[1]/section/main/div/div/div[1]/div[2]/form/div[2]/button",
"btn_not_now": "/html/body/div[2]/div/div/div/div[1]/div/div/div/div[1]/div[1]/div[2]/section/main/div/div/div/div/button",
"cls_following": "/html/body/div[2]/div/div/div/div[1]/div/div/div/div[1]/div[1]/div[2]/section/main/div/header/section/ul/li[2]/a/div"
}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant