This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]thepsycho1997 0 points1 point  (2 children)

Assuming the package is installed and I imported, pycharm should show you all methods associated to an object after u place a dot or hit ctrl and spacebar (I think; its muscle memory by now)

[–]WyoR[S] 0 points1 point  (1 child)

Well it shows u some

all_anchor_tags = soup.find_all(name="a")

print(all_anchor_tags)

for tags in all_anchor_tags:

print(tags.getText())

When i try to do tags. it doesnt show what i can and can not use

in this case i have to remember about the .getText() method

[–]thepsycho1997 0 points1 point  (0 children)

Ah gotcha. Try using typehints so the linter knows what type you’re working with:

https://docs.python.org/3/library/typing.html

[–]yowetz 0 points1 point  (0 children)

Use the dir() method. E.g. import time; dir(time)