OP 18 November, 2020 - 05:11 PM
This post is by a banned member (Snake1337) - Unhide
18 November, 2020 - 05:20 PM
(18 November, 2020 - 05:17 PM)Blepop Wrote: Show More money = soup.find('b').txt this will do nigga if money >''$0.01" this line doesn't make sense , how you comparing strings?
This post is by a banned member (Blepop) - Unhide
OP 18 November, 2020 - 06:15 PM
(This post was last modified: 18 November, 2020 - 06:32 PM by Blepop.)
(18 November, 2020 - 05:20 PM)Rattlesnake Wrote: Show More ![]() error is in this line money = str(soup.find_all('b')[0].get_text())
This post is by a banned member (Snake1337) - Unhide
18 November, 2020 - 06:23 PM
(18 November, 2020 - 06:15 PM)Blepop Wrote: Show More Man everything inside " " is a string in py and also str function converts the inside shit into string like in your error line and ya I know the error line , money = float(soup.find('b').txt) use float () if you want to convert in float
This post is by a banned member (Blepop) - Unhide
OP 18 November, 2020 - 06:35 PM
(18 November, 2020 - 06:23 PM)Rattlesnake Wrote: Show More https://imgur.com/5gky6Q5 big understood now read the bigger part and taaaallll me what should i replace that line with
This post is by a banned member (Snake1337) - Unhide
18 November, 2020 - 08:05 PM
@Blepop that error you are getting on that line is cause nothing was found , so list is empty , and you are trying to access teh first element.
to write the correct line , i might need to look at the html page/content , i seems you trying to get the vaule of money on the page , but prolly using wrong tag inside find_all() or something like that. if i can get the html content then i can write teh whole thing for you. that's all i can say .
|
| Create an account or sign in to comment | ||
| You need to be a member in order to leave a comment | ||
|
Create an account
Sign up for a new account in our community. It's easy!
|
or |
Sign in
Already have an account? Sign in here.
|
Users browsing this thread: 1 Guest(s)
