#๐Ÿ”’ scraper with login help

13 messages ยท Page 1 of 1 (latest)

jolly valley
#

Everytime i run this code, it tells me that ive successfuly completed my task but even if i change the 'login' details, i get the same outcome. I know that I am wrongh but i am noot sure what i am doing wrong. im new tro this and am using python for practical applications this woul dbe be a very big help to me

native magnetBOT
#

@jolly valley

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

jolly valley
#

am i labelling stuff wrong

#

doesnt seem like it

long flame
#

what is telling you that you've successfully completed your task?

#

your screenshot says that the login resulted in status 200, but there was no element with the class "id: pageName" found.

#

but a 200 status doesn't necessarily mean that the login was successful.

#

and you accidentally searched for attrs={"id: pageName"} instead of attrs={"id": "pageName"}.
{"id: pageName"} is a set with a single element while {"id": "pageName"} is a dict with a single item.

#

when you don't pass a dict in the attrs argument, then bs4 uses it to search by classname. even though "id: pageName" isn't a valid class.

drifting hinge
#

why are you trying to automate logging into coinbase ๐Ÿคจ

native magnetBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.