How to Web Scrape Data in Google Sheets! (Import HTML)

  Рет қаралды 35,830

Dividendology

Dividendology

Күн бұрын

Пікірлер: 91
@Dividendology
@Dividendology 2 жыл бұрын
*UPDATE Finviz likes to occasionally change the order that their data tables are listed. At the time of this video, you had to import table 7. It is now table 9 that should be imported. So the new formula will look something like this: =importhtml("@t
@CRoadbuck
@CRoadbuck Жыл бұрын
I haven't used this sheet in a while but I'm trying to give my investments a renewed focus. When I came back to it, the finviz web scrapes weren't working. Your comment solved this. However, now the data appears like this *1.50* so that the other cells don't recognize it as a number to complete the other calculations. Not sure why this is as I'm not seeing the asterisks on the table on finviz. I've tried the Find and Replace function but that is not working.
@lianunes8002
@lianunes8002 Жыл бұрын
They constantly change the last part of the url to mess up the scrapping formula
@outworkthework
@outworkthework 5 ай бұрын
Even 2 years later this video was super helpful. Thank you!
@Dividendology
@Dividendology 5 ай бұрын
Glad it helped!
@chrstdvd
@chrstdvd 2 жыл бұрын
It took all day, but I got all this in a Google sheet today. Table 8 has changed to 9 now. I had to keep changing the number until I found out it is now table 9. Then on last tab, I put in the tickers for all my portfolio just to be sure. Thanks man. Now I can start the PortfolioDividend Tracker Video.
@Dividendology
@Dividendology 2 жыл бұрын
Excellent! Great job!
@neilm9630
@neilm9630 10 ай бұрын
Very helpful. This was my first web scraping and I'm no computer expert by any means. As of Nov 2023 this is now table10.
@Dividendology
@Dividendology 10 ай бұрын
Nice!
@ifthaker2277
@ifthaker2277 Жыл бұрын
you are a life saver. I was trying to build an web app to analyze data . You just save hours of work. Thanks mate.
@Dividendology
@Dividendology Жыл бұрын
Glad I could help!
@valuethoughtinvesting3563
@valuethoughtinvesting3563 2 жыл бұрын
This video needs way more than 946 views. This is a tremendously useful technique!!! Thank you so much for sharing this.
@Dividendology
@Dividendology 2 жыл бұрын
Thank you! I’m glad it helped.
@jivepatrol6833
@jivepatrol6833 2 жыл бұрын
This is a great video and tutorial. I made a Google Sheet and followed the steps to a "t". It was very concise and informative! Thank you!
@Dividendology
@Dividendology 2 жыл бұрын
Glad it was helpful!
@anas_riad
@anas_riad 2 жыл бұрын
Incredibly useful technic, I shared it with some friends that would benefit from it. Thanks for the videos, I just subscribed to your Patreon, fully deserved.
@Dividendology
@Dividendology 2 жыл бұрын
Thank you so much! I’m very glad it helped. I hope my future videos will provide you with lots of value as well!
@WOLF91
@WOLF91 2 жыл бұрын
Been watching all your videos. Great content man
@LongTran-rc3yt
@LongTran-rc3yt 2 жыл бұрын
Yo, best tutorial ever! Super handy Table code and straightforward solutions! I used to do these in desktop excel with ''Data Query from Web'', no idea it calls ''Web Scrape Data''. I bet more people will find your video if you put the ''Data Query from Web'' somewhere in the description. Thanks for the video!
@Dividendology
@Dividendology 2 жыл бұрын
Thank you! I’m glad it was helpful! And thanks for the tip! I will definitely add that in the description so more people can find this.
@OtherKindsofMoney
@OtherKindsofMoney 3 жыл бұрын
Great tips. Didn’t realize Google sheets had this capability. Will be helpful to rather data
@Dividendology
@Dividendology 3 жыл бұрын
Glad it was helpful!
@OptionsIncomeTrading
@OptionsIncomeTrading 3 жыл бұрын
Holy crap. This is such a good tutorial, I'm impressed by how easy it is to follow/implement, and it looks really useful for a indicator/tracking automation project I've been thinking about for a while. If you don't have another Sheets/Excel/Technical tutorial type channel, you definitely should.
@Dividendology
@Dividendology 3 жыл бұрын
Thanks! I’m glad you enjoyed. I definitely take advantage of web scraping in google sheets for a lot of my portfolio trackers.
@DisruptiveWealthCreation
@DisruptiveWealthCreation 3 жыл бұрын
Great share./ Always struggle with this. Thank you for a great explanation. Stay connected.
@NanasNumbers
@NanasNumbers 2 жыл бұрын
Thanks for the extremely useful video.
@lianunes8002
@lianunes8002 Жыл бұрын
This way great thank you so much!
@Dividendology
@Dividendology Жыл бұрын
You're very welcome!
@nathansamson458
@nathansamson458 7 ай бұрын
Very cool, its working. I got a problem, i cant' use the data i guet from the function "IMPORTHTML" because these are text data. How can i transform them into numbers data ?
@twinomujunid9646
@twinomujunid9646 Жыл бұрын
Thank you sir, could you direct me on how i can store the changing Apple price per minute in a row whenever an automatic update takes place.
@danb7146
@danb7146 2 жыл бұрын
I'm looking for a way to validate data that I get from yahoo finance using importhtml. For example if you look at an ETF in Yahoo finance and say I'm looking for dividend yield. So there might be 2 tables where the yield in in second table. So if there a way to say if (importhtml for table 2, A1="Yield", then importhtml...A2 field, so it brings back the yield only if it's the correct line? Great videos btw, learning a lot from your videos.
@cthulhusepterian855
@cthulhusepterian855 8 ай бұрын
How do i adjust the formulas is the value from A2 is in the middle of the url
@looshenq
@looshenq Жыл бұрын
Thank you. Really helped me get what I want.
@Dividendology
@Dividendology Жыл бұрын
That’s great!
@tradewithsahani
@tradewithsahani 11 ай бұрын
Hii, i fetch option data from money control. But here is erroe that "imported content is empty". How to solve this?
@mariusmoga4738
@mariusmoga4738 2 жыл бұрын
This is useful, thanks What about the links that have the ticker at half part through the link? How should we alter the formula? So it's like a specific word dash ticker and after that slash and some other words.
@Dividendology
@Dividendology 2 жыл бұрын
I’ll try to address this in a future video!
@gandalfearth5336
@gandalfearth5336 Жыл бұрын
Any attribute or option to mantain the original format when you import the data from Finviz Table? Thanks in advance!
@lmac222
@lmac222 11 ай бұрын
Great video, how do you scrape something that you can not find within the console? Are images scraped the same way? Im trying to scrape the heatmap from finviz. Its tables 11-14, but whatever series of numbers I can not find my info. Can you help with this? Its the image to the right of the losers.
@alm9707
@alm9707 3 жыл бұрын
Great video and well paced, I learned alot. Any chance you have ideas on how to obtain data for International stocks from countries such as in Singapore and Hong Kong?
@Dividendology
@Dividendology 3 жыл бұрын
Thanks! I will look into how to do this.
@vaclavkinsky6964
@vaclavkinsky6964 11 ай бұрын
Currently finviz is telling me N/A after some time even though I have everything correct. What could it be please?
@neilm9630
@neilm9630 Жыл бұрын
This was great. I know nothing. And was able to figure this out. Thanks so much. The only thing is I have the * symbol before and after my data. Any ideas?
@Dividendology
@Dividendology Жыл бұрын
you can use the substitute formula to get rid of this!
@neilm9630
@neilm9630 Жыл бұрын
@@Dividendology I don't know what that is.
@gregerlindstrand1665
@gregerlindstrand1665 2 жыл бұрын
I need Ex-dividend date and Annual payout data. How do I get that?
@beamman3000
@beamman3000 2 жыл бұрын
Hi, thanks for this great video. Question: How can I scrape data from what appears to be an embedded Google Sheets spreadsheet that is on a web page? Thanks.
@Dividendology
@Dividendology 2 жыл бұрын
I havent run into that before. I'll have to look into it.
@Cartagenaculture
@Cartagenaculture Жыл бұрын
I am trying to extract the status of the open or closed market that shows up on Yahoo Finance page. Having Zero luck..
@Dividendology
@Dividendology Жыл бұрын
Im creating a custom way to do this! I'll release a video soon!
@gamesview3313
@gamesview3313 11 ай бұрын
Why do European stocks not work in sheets? Example ams:nn
@Dividendology
@Dividendology 11 ай бұрын
Working on an update for that!
@joshwhitlam9027
@joshwhitlam9027 Жыл бұрын
Can anyone recommend how to scrape macro trends for a ticker’s free cash flow table? The console function doesn’t work on their site.
@METASRB
@METASRB Жыл бұрын
What about multiple table
@martvervaet3995
@martvervaet3995 Жыл бұрын
Thanks for the video! Do you know how to remove the stars (asterisk) in the output data? Simply using the find and replace function doesn't work...
@Dividendology
@Dividendology Жыл бұрын
Yep! You can use the substitute formula!
@kevinspaeth5895
@kevinspaeth5895 2 жыл бұрын
I think they changed the way the script works now, for I am getting errors about a parameter error. I am sure I typed the correct formula. Thoughts?
@Dividendology
@Dividendology 2 жыл бұрын
Hey Kevin, can you send me your formula so I can review it and help you?
@Dividendology
@Dividendology 2 жыл бұрын
Dividend: It seems finviz has changed the way to pull dividends from their website. I have corrected the spreadsheet and it now works. Here is the updated formula: =substitute(SUBSTITUTE(index(importhtml("finviz.com/quote.ashx?t="&A4,"table",7),7,2),"*",""),"-","0.00")
@johnhan6398
@johnhan6398 2 жыл бұрын
@@Dividendology Thank you for the updated formula! I've been searched for this for quite a while.
@JoeL-sc4cy
@JoeL-sc4cy Жыл бұрын
Does not appear that the formula works. I tried dozen of different table and nothing seemed to work. This was great and would be exactly what I wanted but since this was created it appears that something changed and this no longer works. If you could post the new formula format that would be awesome.
@Dividendology
@Dividendology Жыл бұрын
Hey Joe, I posted a video on how to make a stock watchlist in google sheets a few days ago that has the new formulas!
@orkayen
@orkayen 2 жыл бұрын
how do i import a table that extends in 7 pages?
@TheBuddaBrot
@TheBuddaBrot Жыл бұрын
lit
@romain4421
@romain4421 2 жыл бұрын
Hi, thanks for your work, it's been very helpful. The only problem that I have is that my website data are not refreshing. How can I fix that ? Thanks for your return
@Dividendology
@Dividendology 2 жыл бұрын
Google sheets will typically auto update every 20 minutes or so. I will look into this and see if there are other options for a quicker update time.
@romain4421
@romain4421 2 жыл бұрын
@@Dividendology Thanks indeed I agree for 20 minutes :) it's enough for me use :)
@lylestavast7652
@lylestavast7652 Жыл бұрын
Should be able to just refresh the browser and have it update. Otherwise try to - go to File | Settings - and under the Calculation tab, you can use the pulldown to set refresh to On Change and 1 minute or somesuch... that works with the TIME related functions - so somewhere on your page just throw in a cell with "=now()" and the whole sheet may update again. You might need to exit and open the sheet again after the calculation tab change.
@bongo8052
@bongo8052 2 жыл бұрын
Hello Dividendology, would you help me on how to get the eps of stocks from last year,(2021) these year estimates(2022) and the following year 2023 estimates? I am running a project and I feel I just hit a wall with those metrics . thank you
@bongo8052
@bongo8052 2 жыл бұрын
Also , I will like to extract data from multiples sources and have it in an automated mode. The idea is to create a google sheet with a list of indicators that update themselves as soon as new data is posted. Any advice on how to proceed? Thank you
@amit_dhami
@amit_dhami 2 жыл бұрын
Finvest again changed something, dividend data isn’t working. I tried everything you suggested, nothing work. Pls check.
@Dividendology
@Dividendology 2 жыл бұрын
I’ve made the correction! You now have to pull table 9 from finviz.
@amit_dhami
@amit_dhami 2 жыл бұрын
@@Dividendology You missed the formula in pinned reply.
@benthronson4002
@benthronson4002 2 жыл бұрын
Do you have any recommendations for scraping website tables that are larger than what importhtml can handle?
@Dividendology
@Dividendology 2 жыл бұрын
There are some options, but I'll have to find what's best. Maybe I'll make a video on it in the future.
@waynebaker2904
@waynebaker2904 Жыл бұрын
Is there a way to remove the asterisks?
@Dividendology
@Dividendology Жыл бұрын
Yes! Use the substitute formula.
@hollygreen8663
@hollygreen8663 Жыл бұрын
it doesn't work with some websites
@WOLF91
@WOLF91 2 жыл бұрын
Do you know how we could scrape data from Macrotrends? I tried to run the line in the description, but it seems like they have their data in divs, and not on tables.
@Dividendology
@Dividendology 2 жыл бұрын
I’m cases where the data isn’t in a table or list, you will typically have to use the =importantxml function. I used this formula to import industry data in many of my portfolio tracker tutorials. I don’t yet have an in depth video on this formula yet though.
@Ninjhaw
@Ninjhaw Жыл бұрын
how about for divs ?
@Dividendology
@Dividendology Жыл бұрын
check out my importxml video!
@thayerheaton9292
@thayerheaton9292 Жыл бұрын
Has anyone tried to scrape from Robinhood? I think that may be an unscrapable site? Are there restrictions to what can and can’t be scrapped.
@Dividendology
@Dividendology Жыл бұрын
It's possible. Some websites have restrictions.
@zackd7597
@zackd7597 2 жыл бұрын
Anyone else have the issue where it just says [TABLE]?
@neilm9630
@neilm9630 Жыл бұрын
Yes. It is now table 9. Not 8
@alejandroelarq
@alejandroelarq 3 жыл бұрын
i guess this is when data is inside a table, but in case it isnt ?
@Dividendology
@Dividendology 3 жыл бұрын
The main focus of this video was for tables, but if the data you are wanting to scrape is in a list, the only change that you have to make to your formula is to switch "table" to "list" in your google sheets formula. There are also other ways to go about web scraping in google sheets that I may cover in future videos.
@alejandroelarq
@alejandroelarq 3 жыл бұрын
@@Dividendology can we extract a single piece of data that isnt contained on a liis nor a table... like in a div or maybe an H1 ?
@Dividendology
@Dividendology 3 жыл бұрын
That is possible! I use the importxml command for that typically. I may make a video on that in the future.
Web Scraping in Google Sheets! (IMPORTXML FUNCTION)
7:32
Dividendology
Рет қаралды 91 М.
Web Scrape in Google Sheets: IMPORTXML Function (Part 2)
8:58
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 20 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 5 МЛН
Build A Fully Functioning STOCK WATCHLIST With Live Data In Google Sheets
25:59
Brian Turgeon (bmturgeon)
Рет қаралды 975 М.
How to Import Data from Webpages into Google Sheets
7:33
Teacher's Tech
Рет қаралды 177 М.
The Biggest Issues I've Faced Web Scraping (and how to fix them)
15:03
5 Functions for Web Scraping in Google Sheets
10:14
Eamonn Cottrell
Рет қаралды 13 М.
Web Scraping Made Easy With Google Sheets
10:49
Oxylabs
Рет қаралды 5 М.
How to get Yahoo Finance Data in Google Sheets!
13:02
Dividendology
Рет қаралды 93 М.
IMPORTHTML, IMPORTXML Functions - Google Sheets Tutorial to Extract from Web Pages to Spreadsheets 2
17:10
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 158 М.
Web Scraping Made EASY With Power Automate Desktop - For FREE & ZERO Coding
13:11
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19