Live stock data
Foster_Bryant (97)

The data is basically live but it might be slightly delayed. Give feedback and/or suggestions please :)

NOTE: When entering the ticker don't put NASDAQ or anything like only the ticker. For example: AMD

You are viewing a single comment. View All
ChezCoder (1500)

Traceback (most recent call last):
File "main.py", line 38, in <module>
price = soup.find("div", {"class": "D(ib) Va(m) Maw(65%) Maw(60%)--tab768 Ov(h)"}).find("span")
AttributeError: 'NoneType' object has no attribute 'find'

Foster_Bryant (97)

@ChezCoder hmm that's weird I just tested it and it worked fine can you run it again and show me the full input u entered? thanks

Raniconduh (16)

it works but you just have to put AAPL instead of NASDAQ:AAPL for instance. @ChezCoder

Foster_Bryant (97)

@Raniconduh oh I see what he did wrong now lol. Yeah I should probably clarify that you only put the ticker

ChezCoder (1500)

@Foster_Bryant sorry i didnt see ur msg, i think i did K and ESM
Edit: another error.....

Enter how many stocks would you like to look at: 2
Enter ticker #1: K
Enter ticker #2: ESM

The time zone for these dates are in universal time so the time might be slightly inaccurate for you until I
fix it but they should be atleast understandable.

NOTE: Red or green color doesn't mean the price has increased or decreased. The colors are only for style.

Ticker, Date, and Price:

K Jan 08 2020 00:21:45 $68.81
Traceback (most recent call last):
  File "main.py", line 40, in <module>
    price = soup.find("div", {"class": "D(ib) Va(m) Maw(65%) Maw(60%)--tab768 Ov(h)"}).find("span")
AttributeError: 'NoneType' object has no attribute 'find'
Foster_Bryant (97)

@ChezCoder Thanks for the feedback I am currently fixing something at the moment so I can't fix this right now.

ChezCoder (1500)

@Foster_Bryant ok! I might just typed an incorrect ticker. But when that happens, you can do a try except loop that tells the user what has gone wrong instead of a flat error msg:)

Edit:Maybe you should clear the console everytime it re-prints the stock prices so its cleaner?

ex:

K Jan 08 2020 00:27:30 $68.81           <-- only displays these two
AAPL Jan 08 2020 00:27:31 $298.39  <-- only displays these two
Foster_Bryant (97)

@ChezCoder I was thinking about doing that earlier but was In school so I forgot lol. Thanks for the feedback I may do that later if I remember to.

ChezCoder (1500)

@ChezCoder I am making a simulator in python. want to help? if u agree then I will tell u more about it in the colab because I dont want anybody knowing wut it is yet

Foster_Bryant (97)

@ChezCoder sure i can help add me if you want to :P