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

Issue with script = soup.find_all("script", {"type": "text/javascript"}) #14

Open
mehdifekhar8 opened this issue Dec 23, 2023 · 2 comments

Comments

@mehdifekhar8
Copy link

When ever this function is running i'm getting
settings = script[1].get_text().strip().replace(";", "")
This is print of the script array
[<script type="text/javascript">
window.settings = {"fpjsDomain":null,"csrf":"d3sZkbB0EkSa571R31blhq7Kg8ToKfDhLt9E4cbw"};
</script>]
it only have one and no token
Can anyone help me with this ?

@cleitonleonel
Copy link
Owner

When ever this function is running i'm getting settings = script[1].get_text().strip().replace(";", "") This is print of the script array [<script type="text/javascript"> window.settings = {"fpjsDomain":null,"csrf":"d3sZkbB0EkSa571R31blhq7Kg8ToKfDhLt9E4cbw"}; </script>] it only have one and no token Can anyone help me with this ?

Your error is possibly related to the playwright's inability to log into your account, as this json response comes with your data when the login goes without problems and in your case it returns Null, which is basically a failed login.

@mehdifekhar8
Copy link
Author

Thanks

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

No branches or pull requests

2 participants