Thank you for this tutorial, you explained everything clearly! I can imagine with your skill level there are many things that are very obvious to you, yet you never skipped to explain the meaning of every code.
Could you make a tutorial for an Amazon Webscaper that can catch the price for a specific version of a product? (for example the green version of in ear headphones that is 10$ cheaper then the black version that is still listed under the same url) There are already amazon price tracker videos on youtube but only for simple products where you can't choose between different versions and some of them don't even work, so your tutorial could become really popular.
That was amazing !! I'm so bad at programming. I've watched the entire video for so many times which ended out a lot of questions and errors. I'm now doing a visualization of stock's program, wish me luck~~
One improvement would be to have a list of user agent strings and in your function, choose a random user agent string. I would also choose a random sleep interval between every request. The way you are doing it now may get you banned.
Thank you for this. I've been interested in programming a bot for technical analysis in Python but haven'f found much info on the subject. Keep them coming :)
great rundown on a scraper-job: explained very good and clearly - keep up the great work - it rocks!: By the way - it seems that you work with spider. I like this technique with the divided "editor windows" - This is very convincing since you go step by step in the process; I guess that i can reproduce it here too - with spyder - or with Jupyter!? Look forward to hear from you
In the video I noticed you have a particular way of coding. Testing out individual lines of code before putting them your program. I known this may sound awkward, but is that the way you code everyday?
Thanks, hope you keep up with the projects. Its much easier to learn relevant code through doing projects than to watch 4-5hrs long Python A-Z video.lol Also, if possible, please make a code appear little bigger, I don't know how to do it, but maybe you know some ways.
I went through this video course twice on VSCode and it didn't work either time. Is there a difference in syntax between Spyder and VSCode that maybe wouldn't translate and is why I keep getting errors?
Hi Alice! It‘s looking very nice, thank you. Do you know how it‘s possible to get an update only if the price is different than previous? And maybe send this values via Telegram to different users? And/or creating an app/website/software where you get all this information in? Also refreshing the url vecause the data is not refreshed in real time (like flash)
thanks, took me a bit, but I managed to modify the code to show the current, highest and lowest prices for multiple stocks I follow, as well as showing the time for each loop run. Now I'm gonna try and get it to send me an email notification if a stock drops too much or something
Hi Is it possible to get realtime data live( how long it will take) for ALL Hong Kong stocks and get a BUY alert when price> 10ema, 10ema> 20 ena and 20ema> 40ema? Thanks
@@kjartanwettergreenh.s.3187 You can import time at the very top and then inside the while loop simply type: time.sleep(1) this will delay every second import time while True: time.sleep(1) print('the current price of FB is ' + str(parsePrice()))
Hi, thanks for this video. Your tone made it easy to follow. I did an inspect on the website price and based on that result I used the following command: "soup.find("div", {"class": "price-large"}). However, that gives the following result - " $21,094.79
Great video!! Really amazing! _I have only a question, how can update the current price automatically? or i must to click every second the function to have the current price?. Thanks a lot!!
thank you! This video helped me finally figure out how to use the .text portion to remove the HTML. every other example i found was not helpful as this one.
What she did, I did that already. But it's no use to have a late response of stock price in order to see the volume breakout , as python is really slow. Check yourself. If you are planning to use, just to gather time independent data as collection of information in some format them this is good
@@newzoelThis is what shows up when I try to run: Traceback (most recent call last): File "/home/igor/Documentos/WebStraping/teste.py", line 21, in print('the current price: '+str(parsePrice())) File "/home/igor/Documentos/WebStraping/teste.py", line 17, in parsePrice price=soup.find_all('div',{'class':'My(6px) Pos(r) smartphone_Mt(6px)'})[0].find('span').text IndexError: list index out of range
@@igorpaiva9304 hi igor, i've found the workaround. Instead using "xml" try using "lxml". Then try to point directly to span header where the price exists, without pointing the div class. Hopes this help
1st female tech tutorial ive seen on UA-cam in 2020...
Proud of you, please post more videos like this,
This was very good and to the point. For those with getting 'nonetype' errors, changing 'xml' to 'lxml' made it work perfectly.
Thank you for this tutorial, you explained everything clearly! I can imagine with your skill level there are many things that are very obvious to you, yet you never skipped to explain the meaning of every code.
So glad that you found it useful 😄
We will make more content like this!
Lovely start for me...was reading a book on it with my eyes glazed over...but this was lovely. Thanks for sharing.
Very nice. Intra day data is very rare and valuable to a lot of people.
Could you make a tutorial for an Amazon Webscaper that can catch the price for a specific version of a product? (for example the green version of in ear headphones that is 10$ cheaper then the black version that is still listed under the same url)
There are already amazon price tracker videos on youtube but only for simple products where you can't choose between different versions and some of them don't even work, so your tutorial could become really popular.
Thank you for making this tutorial and keeping it simple. Very great quality and exactly what I was looking for. Thanks again!!
A beautiful Soup from aa beeuutifuul girl, thanks dear for your hard work to humanity
Yes it works. Had to change "xml" to features="html.parser"
THANKS FOR THE COMMENT, MAKE MY CODE WORKS !
thanks mate .. works after that
EDER why does my code say function_stock_price at 0x7f80a964b3a0
@@camilotjee_504 you forgot to return the price from the function
if your "soup.find" isn't working, try changing BeautifulSoup(r.text, 'xml') to BeautifulSoup(r.text, 'html.parser')
Tks!!!
Thank you for such a clear and succint explanation. I understand the beautifulsoup better thanks to your work.
This is good stuff. How to get day's high and low and check in real time for multiple stocks. It will be great if you can make a video on this too.
That was amazing !!
I'm so bad at programming. I've watched the entire video for so many times which ended out a lot of questions and errors. I'm now doing a visualization of stock's program, wish me luck~~
5 months later, hope it worked out!
That's very lovely from you this video was very helpful
GOOD STUFF! LIVE STOCKS FOR MY APP! THANK YOU SO MUCH!!! WORKS GREAT A LITTLE MOD IN SCRIPT BUT GREAT WHEN ALL ERRORS CLEARED UP! WORKS AS INTENDED.
Really cool!!! This is very inspiring to see such a simple breakdown of the initial steps of a more complicated program. I am subscribing!
Down to earth. Straightforward explanation. YES DO MORE VIDEOS
One improvement would be to have a list of user agent strings and in your function, choose a random user agent string. I would also choose a random sleep interval between every request. The way you are doing it now may get you banned.
Thank you so much. It really helped me a lot.
I clicked on this video only to check on you. I'm glad I did :D
Glad you liked the video!
This is really good! :D
ikr
Thank you for this. I've been interested in programming a bot for technical analysis in Python but haven'f found much info on the subject. Keep them coming :)
hey, I am currently working on same subject, it will be good if I find some help from you.
Love your video alot! With clear explanation and the logic behind is explained too!
Superb . Small logic but great result...
Love everything about this vid, especially the explanation, subscribe on the spot!
Thank you! This stuff is pretty cool. Will say there’s not many female programmer/traders you’re the first I’ve seen. Like a unicorn lol
Actually, it's more common in some Asian countries where everyone is heavily drilled with math-y subjects in school.
Y. Z. Yeah they get a lot of motivation from their parents to start learning at like 3! Lol
Great video! This video is doing excellent! I have a few python for finance videos on my channel too, but they aren't doing as well.
great rundown on a scraper-job: explained very good and clearly - keep up the great work - it rocks!: By the way - it seems that you work with spider. I like this technique with the divided "editor windows" - This is very convincing since you go step by step in the process; I guess that i can reproduce it here too - with spyder - or with Jupyter!?
Look forward to hear from you
In the video I noticed you have a particular way of coding. Testing out individual lines of code before putting them your program. I known this may sound awkward, but is that the way you code everyday?
Thank you SO much! This was extremely helpful.
Beautifully explained. One query though - the stock price takes a long time to reflect the change in price, any specific reason. Thanks
Great explanation ! looking for the next one
Thank you for the tutorial. Do we need Yahoo's API to scrape stock data?
if you do it like in 10:15 will you not get banned from yahoo quite quickly ? Because you have a lot of request in a pretty short time span ?
Thanks, hope you keep up with the projects. Its much easier to learn relevant code through doing projects than to watch 4-5hrs long Python A-Z video.lol
Also, if possible, please make a code appear little bigger, I don't know how to do it, but maybe you know some ways.
im completely new to coding and I have only done Hello world so far but im gonna be trying this soon, anything you would suggest differently now?
I went through this video course twice on VSCode and it didn't work either time. Is there a difference in syntax between Spyder and VSCode that maybe wouldn't translate and is why I keep getting errors?
Great Job Mam !!!!
I subscribed ! Great Video..Very clear... Thanks
I hope you make a lot more videos. Instantly subbed for this type of content
If you are having issues, use lxml instead of xml
Very good and cool... Good work girl 😃👍
Hi Alice! It‘s looking very nice, thank you. Do you know how it‘s possible to get an update only if the price is different than previous? And maybe send this values via Telegram to different users? And/or creating an app/website/software where you get all this information in? Also refreshing the url vecause the data is not refreshed in real time (like flash)
Inlcude a sleep statement inside the loop. So that you can wait like 30 seconds before you get the next current price.
not trying to be sexist or anything but this is the first female coding tutorial ive seen
thanks, took me a bit, but I managed to modify the code to show the current, highest and lowest prices for multiple stocks I follow, as well as showing the time for each loop run. Now I'm gonna try and get it to send me an email notification if a stock drops too much or something
Thanks , works wonderful.
that's great, but is there a better way to capture the price of stocks with high fluctuations ??
Super easy to follow along! Thanks for the tutorial!
Is there any solution for scrapping data from tradingview?
Team notification. Need more videos please. 🥺👍
Good video, really straight, simple and effective.
Thank you very much, this is exactly what I needed!
Hi
Is it possible to get realtime data live( how long it will take) for ALL Hong Kong stocks and get a BUY alert when price> 10ema, 10ema> 20 ena and 20ema> 40ema? Thanks
this was super helpful, thank you!
Nice I was looking for something like this! I would add a clear screen before display and maybe a delay timer of 100ms or something like that.
How do you add delay timer for it to work in, say the code above?
@@kjartanwettergreenh.s.3187 You can
import time
at the very top and then inside the while loop simply type:
time.sleep(1)
this will delay every second
import time
while True:
time.sleep(1)
print('the current price of FB is ' + str(parsePrice()))
This was a very interesting and practical tutorial, thank you very much for this.
Thanks shumash! We will put out more over time.
really useful video thankyou:)
Hi, thanks for this video. Your tone made it easy to follow. I did an inspect on the website price and based on that result I used the following command: "soup.find("div", {"class": "price-large"}). However, that gives the following result - " $21,094.79
Great teacher!
What is that tab on the right with all those In [ ], I only have the tab on the left
This is a Great video! What video editing software(s) did you use to create your video? Need to make a badazz video presentation soon.
Well explained. Thank You
good and easy to understand tutorial
it's fetch whole page every time loop run, it is not acceptable
This is a great video. Do you have tutorials on how to do the things you mentioned near the end?
Really Helpful!!! Thank you very much for sharing!
What about of using an API? What do you think?
wow that's awesome , but how to place that stock to our own website (im using woocommerce wordpress)? any tutorial plz? thx
i am doing this but for a different website but I am not getting the price inside the p tag. why is that? i would appreciate your help
great video! well done :)
Now how do I get this on my website in HTML?
How do you get the output. I can only put in inputs but can’t get outputs
Excellent job and video.. Still need some more detail.. but it worked..
Could you do a tutorial but to reflect this into a webpage instead of the console? Thanks!
Dear how can we scrap from broker webpage, if they have double authentication like - first is login second is PIN to enter?
Hi, very useful - I'd love to learn how to incorporate this script into javascript for use in a webpage
Hi, can you make a way to scrap the tags on the dashboard (must log in first)
I get this issue when trying to import bs4 into spyder. That it doesnt recognize the module. Any idea?
Thanks for the video! Have you tried to get the price data directly from the chart? I tried this wihout success, maybe you can help?
can you do this for other websites like for example binance. and is it legal?
is there any way to make this print/update faster, if any would help id be very happy! thanks
This no longer works they have changed the web page. I tried replacing the 6px with 36px but it still didn't work
Hi ! Can I use this module to import a actual time from url ??
Thank you Alice
Can you do this same video for scraping live prices on trading view?
Nice and Precise . Learned something new today
Meanwhile Inner Me: Whos here to code , imma here to checkout the girl, shes kinda cute
Thank you! Very practical!
Great video!! Really amazing! _I have only a question, how can update the current price automatically? or i must to click every second the function to have the current price?. Thanks a lot!!
It's in a while loop which is calling the function all the time ? it does it already so i dont get your question
I love you, Many thanks!!
thank you! This video helped me finally figure out how to use the .text portion to remove the HTML. every other example i found was not helpful as this one.
Hi
Can i contact you to create a reatime Hong Kong stocks scan with some strategies?
Thank you for the vid! Liked & Subscribed :-)
You never call the parseprice() function, how come it still executed?
Does anyone know why this exact technique doesn`t work for Forex or BTC on yahoo finance? URL does not seem to work, only for these cases..
What she did, I did that already. But it's no use to have a late response of stock price in order to see the volume breakout , as python is really slow. Check yourself. If you are planning to use, just to gather time independent data as collection of information in some format them this is good
This is for automatic trading. Plus, web scraping is much faster than GUI.
im getting index out of range error
Hi, would've been nice if u can share the workaround
@@newzoelThis is what shows up when I try to run:
Traceback (most recent call last):
File "/home/igor/Documentos/WebStraping/teste.py", line 21, in
print('the current price: '+str(parsePrice()))
File "/home/igor/Documentos/WebStraping/teste.py", line 17, in parsePrice
price=soup.find_all('div',{'class':'My(6px) Pos(r) smartphone_Mt(6px)'})[0].find('span').text
IndexError: list index out of range
@@igorpaiva9304 hi igor, i've found the workaround. Instead using "xml" try using "lxml". Then try to point directly to span header where the price exists, without pointing the div class. Hopes this help
@@newzoel dude, thanks a lot!
@@igorpaiva9304 Hi,
Can you explain why this worked?
SUBSCRIBED IMMEDIATELY
How to store these real time values of the stock into an excel file or csv file??
straight code indeed.. thank youu