Web Scraping in Google Sheets! (IMPORTXML FUNCTION)

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024

Комментарии • 177

  • @mrado12
    @mrado12 9 месяцев назад +1

    I have been looking for YEARS for a formula that would help me pull NBA win totals automatically -- this finally did it. Thank you so much!

  • @jivepatrol6833
    @jivepatrol6833 2 года назад +5

    This is a great video and I appreciate you putting it together! Thank You 🙂🙂

    • @Dividendology
      @Dividendology  2 года назад +1

      You are welcome! I’m glad you enjoyed.

  • @antonlindberg7117
    @antonlindberg7117 Год назад +2

    Mindblowing stuff! I just managed to web scrap off another website based on the principles here! Thanks for teaching me something new!

  • @sureshkumar-gy1ye
    @sureshkumar-gy1ye Месяц назад

    Excellent guiding video. Thanks.

  • @Sanctimonious007
    @Sanctimonious007 2 месяца назад

    Smooth as it can be. Excellent. Liked, subscribed. 🫡

  • @JustinWaite
    @JustinWaite 10 месяцев назад +6

    Thanks for the video but this doesn't work for me and I've seen other people get the same #N/A Error Resource at URL not found - please help.

    • @Synthetic-cs9ez
      @Synthetic-cs9ez 5 месяцев назад

      Same here, the Kobe example worked but not the MSFT one. Did you figure it out?

  • @LuxPools
    @LuxPools 7 месяцев назад +1

    How can you pull variable data from a webpage? example: Only business addresses from a listing page that gives you multiple addresses and full descriptions of each address in between the addresses. How do you scrap specific variable data like that into a spreadsheet keeping it organized and separate from the other data?

  • @jmr
    @jmr 6 месяцев назад

    Modern tools make this so much easier!

    • @MohitBadgotra-of7xu
      @MohitBadgotra-of7xu 5 месяцев назад

      WHICH TOOLS PLEASE TELL ME

    • @jmr
      @jmr 5 месяцев назад +1

      @@MohitBadgotra-of7xu In this case the "tool" is Google sheets. In the past I had to write programs and use functions like split or import libraries like beautiful soup and requests. Then you have to deal with error handling. One change to the page or a 404 and your entire program might crash. Often I had to reformat the data and correct character sets too. That really sucks because the errors you see aren't obvious. There is a strange version of the quotation mark you run into a lot when scraping the web. It looks the same to the untrained eye but will break stuff if you don't catch it. Google sheets in this case makes it MUCH easier.

    • @MohitBadgotra-of7xu
      @MohitBadgotra-of7xu 5 месяцев назад +1

      @@jmr thank you for such a great information

    • @jmr
      @jmr 5 месяцев назад

      @@MohitBadgotra-of7xu You're welcome. I hope it helps.

  • @thswan
    @thswan Год назад +10

    nice video, thanks for posting! I've got two questions. 1) I get a N/A cell and the error is "could not fetch the url". What is the cause of this and is there any workaround? 2- Is there any way with this method to see the values changing in real time? thank you!

    • @sawyersahagun2073
      @sawyersahagun2073 Год назад +1

      Is the site you’re trying to pull from password protected?

    • @ricardoortiz6000
      @ricardoortiz6000 Год назад +1

      @@sawyersahagun2073 i get the same error, and yes the site is password protected

    • @alfarasyiedsyahrizad5395
      @alfarasyiedsyahrizad5395 Месяц назад

      To make it change value in realtime, you may need to use Google Apps Script extension, and write a simple code to refresh formula.

  • @dbarrantescr
    @dbarrantescr Год назад +4

    Has anyone tried scraping from YH subsection pages like "Statistics" or "Financials" sections? I have tried scraping from there using importhtml and importxml and both seem to fail (only working in summary page)

    • @xyungn9860
      @xyungn9860 Год назад

      Cant get it to work either

  • @KnowArt
    @KnowArt Год назад

    yasss this is what I was looking for (I think... let's see if it actually works)

  • @sandeepkumar-js3gi
    @sandeepkumar-js3gi Год назад +3

    Thanks , your video is very good. But when I use this formula, error come is - import data is empty...Pls help

  • @tp8706
    @tp8706 2 года назад +3

    This is great but I tried this and for some reason it says “Imported Content is Empty”. Then I tried the same thing you did for Kobe but got the same error. Is yours still working?

  • @IndianDividendInvestor-sm3xc
    @IndianDividendInvestor-sm3xc 11 месяцев назад

    Thanks brother much appreciated simple and quick.

  • @JatilenggerTV
    @JatilenggerTV 2 года назад +1

    Very interesting and useful. Great content for all of us data nerds. Thanks!

  • @trader_gian
    @trader_gian Год назад +12

    Hi! I’ve tried the formula to import the full xpat section but now the cell return #N/D so can’t find the object at the url. Any suggestions?

    • @sanjayvaradharajan
      @sanjayvaradharajan Год назад +1

      did you find a fix? im getting the same issue

    • @EmanzASR12
      @EmanzASR12 8 месяцев назад +1

      Remember to check the correctness of the URL and XPath. Additionally, keep in mind that some websites may prevent or restrict access through the IMPORTXML function due to security restrictions or to prevent unauthorized web scraping.
      If the issue persists, it might be helpful to verify whether the website in question allows access and data extraction using the IMPORTXML function. Also, consider using more advanced tools such as APIs or scripts for extracting data from web pages.

  • @rathinmondal2001
    @rathinmondal2001 5 месяцев назад

    Thanks for this video. I am able to fatch data from any site to sheet. This is very helpful . Thanks again.

  • @jennifertao5885
    @jennifertao5885 2 года назад +4

    When I use the same function, but the cell shows"N/A". Do you have any idea what is the problem with it? Thank you!

    • @Dividendology
      @Dividendology  2 года назад

      This may be an error on yahoo finance send as I occasionally run into this.

    • @jtporter89
      @jtporter89 2 года назад +2

      @@Dividendology I am having the same issue scraping from any website. Any idea where I may be going wrong? Thank you

    • @listen4159
      @listen4159 Год назад

      @@jtporter89 same issue here

    • @avrohomgurevich6951
      @avrohomgurevich6951 Год назад

      ​@@DividendologyI couldn't even get the price for Microsoft does this still work

    • @printmohit3600
      @printmohit3600 3 месяца назад

      Yes same issue

  • @Tsu-WeiYang
    @Tsu-WeiYang 2 месяца назад

    Thank you. But I cannot web scrap some ETF like GLD (gold). Can you help ?

  • @tradesbyj7112
    @tradesbyj7112 Год назад +1

    can you make something showing how to pull a specific portion of a financial statement. For example, free cash flow. I am trying to pull that from yahoo finance and it keeps giving me an error Resource url not found. I have followed your step by step instructions. Spent countless hours and can't find any help. Can you help? I see that in one of your tables you had the price to free cash flow auto populating so I figured you would now how to at least pull free cash flow. Please help.

  • @MuhammadAbyWicaksono
    @MuhammadAbyWicaksono Год назад +1

    how if website need login ?

  • @skenderaxe5968
    @skenderaxe5968 2 года назад +2

    Nice! What about the 'Statistics' tab? It doesn't seem to allow me access to the Xpath on, say EV/EBITDA

    • @skenderaxe5968
      @skenderaxe5968 2 года назад

      I have a similar issue with the financecharts site

  • @luiscastroalcala7576
    @luiscastroalcala7576 Год назад

    Thank you so much from Perú . you re the best.

  • @cosmicnature
    @cosmicnature Месяц назад

    can you post a video with the formula that works? I copied the exact formula you used in the video but didn't worked at all

  • @BrianBenkert
    @BrianBenkert 10 месяцев назад +1

    What would you do in the case that a website you're pulling prices from requires a log in? I have the login for the specific site i'm referencing, but what if you don't as well? More curious on how to do it if you have the login. For example, if I get specialty pricing from a hardware store that's only visible via my login, how would I automate that extraction?

  • @opportunityseeker-dm6yp
    @opportunityseeker-dm6yp 6 месяцев назад

    damn!thank you for this brother super super great information

  • @itoha3
    @itoha3 8 месяцев назад +1

    I tried it. Doesn't work.

  • @chrissis111
    @chrissis111 2 года назад

    You have the best stock videos for beginners!

  • @Pseudonyme63
    @Pseudonyme63 5 месяцев назад

    Thank you for this helpful tutorial but is there a way to automatically update the data ?

  • @robertogalvan5887
    @robertogalvan5887 2 года назад

    Thank you so much for this!!!

  • @dogtown1ewok
    @dogtown1ewok 5 месяцев назад

    Thanks lad!

  • @raaariru
    @raaariru 10 месяцев назад

    Why it can't work on me although i do the same function ? literally same like what happened in this video, on me its always turn out either N/A or ERROR. IDK HWY ARHGGGGG

  • @rymelo2405
    @rymelo2405 8 месяцев назад

    I'm getting error: Resource at url not found. and as far as I can tell I'm doing exactly the same thing. Any suggestions?

  • @sadashivb5100
    @sadashivb5100 2 года назад

    Nice video...but more than 100 ticker its take to mach time to update so any other idea to track revenue details.....

  • @willbreece
    @willbreece 2 года назад +1

    Very interesting

  • @mk05022
    @mk05022 Год назад

    Awesome, thank you!

  • @hotdoggyboomboom411
    @hotdoggyboomboom411 9 месяцев назад

    thanks but some sites like similar web wont let to scrape data any methods for that . ?

  • @kyh9229
    @kyh9229 Год назад

    Hi I wonder why it doesnt work when i do this with copying the youtube website title? Thank you.

  • @trustan3079
    @trustan3079 Год назад

    Thank you for this! :)

  • @theDemolisher13
    @theDemolisher13 Год назад

    Great. Though I got a question what would you do if you got to a store front page that offered a price range that varies based on different options the user could pic but selecting the different options don't change the URL?

  • @erincvarol4888
    @erincvarol4888 4 месяца назад

    Hello i dont know if you ever see my message but is seems google has changed something in their settings, the inspec option is not working as one unit but it shows all text so i can not scrape anything lately... am i wrong??

  • @prins1991
    @prins1991 9 месяцев назад

    I didn't know this was possible. Thank you for this tutorial! 🤗🤗

  • @earbitter
    @earbitter 8 месяцев назад

    I'm running into an error. It says "imported content is empty". I've done this two or three times now and it worked for another site, but the yahoo finance site won't let me pull the data. Any thoughts?

  • @KnowArt
    @KnowArt Год назад +2

    doesn't seem to work on views on youtube videos or instagram etc etc. But does work on the data you show in the video. How come?

  • @pincer2885
    @pincer2885 Год назад

    hey what if there's a quotation mark in the path? Can't figure it out

  • @ttone2330
    @ttone2330 Год назад

    Big Thumbs up to you.... Thanks

  • @jg5479
    @jg5479 2 года назад +2

    Hey man, really like you videos so keep it up. Also like the other i too am having an error with yahoo. I have been trying to import tables off their site and when i copy paste the site and find the table number it works. However when i delete the url to input the cell where i change the ticker symbol, all of a sudden it shows N/A. I have looked at all your videos on web scrappiing ect. and tried on my own with no success on inputting the cell with the ticker. And also with the xml fuction i am also not able to scape the differnt items from yahoo or other sites. i am on a chrombook but figured that would not matter to much, and also read that it might be a javascript problem but disabled that and tried but nothing seems to work. I am not a code writer so dont know what else to try, so if you are able to find a solution please post another video. Thanks

  • @ottomatictrade1579
    @ottomatictrade1579 Год назад

    Great video, Wondering if anybody got the n/a message and how to fix it…? Thanks.

  • @mikkelhansen782
    @mikkelhansen782 2 года назад +1

    Quick question, what if the stocks I want to look at is not a US stock and the stock is listed on an other stockexhange? then the stock have a little more to its ticker, but when I try to add CO/CPH (it's a danish stockexhance) then the scraping just says Error or N/A
    what to do?

  • @giovannicapuano9729
    @giovannicapuano9729 Год назад

    hello, what can i do when the website doen't allow the web scraping?
    how can i import table in this case? thanks

  • @lmac222
    @lmac222 11 месяцев назад

    Thanks for making this. It helps tremendously. My one question is, is it a different function to pull in a chart/graph of a stocks trend? I tried importxml and followed the steps and i get an error (formula parse error). Any help?

  • @SerdarTokcan
    @SerdarTokcan Год назад

    Thank you :)

  • @mohamedsalam7462
    @mohamedsalam7462 3 месяца назад

    I can only find copy XPATH - I cant find copy full xpath

  • @globalworldmigrant
    @globalworldmigrant 8 месяцев назад

    Tell me, this function works for Facebook, I need to get the number of participants from the list of groups, the name of the group description is the number of participants, it doesn’t work.?

  • @johnbezos4171
    @johnbezos4171 Год назад

    Hey any idea how importing google trends values for a period works?

  • @RajatSonakiya
    @RajatSonakiya 11 месяцев назад

    can we do same web scrapping for prices of articles listed on amazon???

  • @AylakBakkal-k1h
    @AylakBakkal-k1h 8 месяцев назад

    Ty so much

  • @JL1009
    @JL1009 8 месяцев назад

    too bad my triggers don’t work to auto update the sheet :(

  • @Reza_Audio
    @Reza_Audio 2 года назад

    Hi, do you know why it is not working for some stocks like RETC, INND ,... ?

  • @Oreox4
    @Oreox4 11 месяцев назад

    wow what the heck this is awesome

  • @shekharb2981
    @shekharb2981 Год назад

    If I want chart,this method won’t work..what should I do to import stock chart pl inform

  • @hrmn9385
    @hrmn9385 Месяц назад

    always error parsing formula -,-

  • @fedepasco8309
    @fedepasco8309 Год назад

    Buenos días. Consulta, porque al traer un dato de una pagina de cotizaciones, redondea el mismo y además no coincide en cantidad. El dato es 151.00 y me trae 1.600.000. Gracias

  • @saraflores338
    @saraflores338 Год назад +1

    Also keep getting #N/A :(

  • @Aadyaaaq
    @Aadyaaaq 6 месяцев назад

    How to pull list of company names around one building from google sheets

    • @Dividendology
      @Dividendology  6 месяцев назад

      you can use the tools at Tickerdata.com !

  • @cgc2300
    @cgc2300 8 месяцев назад

    hello I am an Amazon seller, do you think I could retrieve the 2020 history in a Google sheet?

  • @evaltanful
    @evaltanful 10 месяцев назад

    Thx

  • @MatangSaxena-z3h
    @MatangSaxena-z3h 11 месяцев назад

    showing an error: Resource at url contents exceeded maximum size.

  • @toxichelix2340
    @toxichelix2340 Год назад

    i cant get it too work

  • @looshenq
    @looshenq Год назад

    Is webscraping a live function?

  • @demoix
    @demoix Год назад

    How to fx an error "Imported Content is Empty"?

  • @sandeepkumar-js3gi
    @sandeepkumar-js3gi Год назад

    Hi, great video, pls tell link will auto updated....

  • @Naveen-if8kr
    @Naveen-if8kr Год назад

    Awesome video with simple steps.. Thanks a lot.

  • @growthcab
    @growthcab 8 месяцев назад

    Does this work with linkedin?

  • @neilormelo6069
    @neilormelo6069 Год назад

    Very good! I tried with reuters site and I didn't get.

  • @TheCompoundingInvestor
    @TheCompoundingInvestor 2 года назад +1

    Very interesting and useful. Will it auto refresh the page so you can see it update in real time? Or do you have to manually refresh the page somehow?

    • @Dividendology
      @Dividendology  2 года назад +5

      Google sheets automatically refreshes typically around every 20 minutes.

  • @zimmamania5313
    @zimmamania5313 Год назад

    does this update real time? If not do you know how to make it do so?

  • @SC-bi6my
    @SC-bi6my Год назад

    Its not working..Can you check again?

  • @stathisgeo7979
    @stathisgeo7979 2 года назад

    Great content. I follow the steps but it keeps say ERROR into the cell. I can't find what i'm doing wrong

    • @Dividendology
      @Dividendology  2 года назад

      What are you trying to webscrape?

    • @stathisgeo7979
      @stathisgeo7979 2 года назад

      @@Dividendology just like you i've tried to enter prices fron yahoo finance

    • @Dividendology
      @Dividendology  2 года назад

      Yahoo finance has been a little finicky lately when it comes to webscraping using importantxml. I’ve noticed some elements not webscraping properly as well. I’m looking into solutions.

    • @stathisgeo7979
      @stathisgeo7979 2 года назад +2

      @@Dividendology did you find any solution?

    • @xenonvy8857
      @xenonvy8857 Год назад

      @@Dividendology Leaving comment to keep update for solution, having same issues too, appreciate and thanks in advance, subscribed.

  • @yosoymemetronic7751
    @yosoymemetronic7751 23 дня назад

    i need forex real time dollar index, japanese index etc to google sheets

    • @Dividendology
      @Dividendology  23 дня назад +1

      The tickerdata add on in google sheets can do that! Tickerdata.com

  • @PapeySapote
    @PapeySapote 2 года назад

    Would I be able to use this to add ROIC to your complete valuation model?

  • @lucatintor4896
    @lucatintor4896 Год назад +1

    Error to me

  • @CrescentCaribou
    @CrescentCaribou Год назад

    My spreadsheet frequently changes prices that were working previously into #N/A with the message "Error, could not fetch URL: [url]", even before I turned on the auto-update feature. Would you happen to know why this happens, and how to fix it?

    • @Dividendology
      @Dividendology  Год назад +1

      I’m getting ready to post an update! Stay on the look out!!

  • @chimsiste
    @chimsiste Год назад

    it's blocked, that doesn't work anymore ??

    • @Dividendology
      @Dividendology  Год назад

      I’m working on an update!

    • @chimsiste
      @chimsiste Год назад

      @@Dividendology ho okay thanks. But I think it could be easier to find an another website maybe ?

  • @s-statik
    @s-statik 2 года назад +2

    Everyone has issues with it but he only replies to positive comments

    • @Dividendology
      @Dividendology  2 года назад

      Just trying to make a helpful video!

    • @s-statik
      @s-statik 2 года назад

      @@Dividendology I understand that but people clearly have problems with getting it to work so maybe a disclaimer or trying to figure out or maybe fixing what is causing so many problems would be nice.

  • @jeanphi0078
    @jeanphi0078 2 года назад

    Thank you but It seems that it does not work, may be some update from Yahoo finance. In my case I receive: "N/A". Any help from you would be very nive as this function is very powerfull

    • @Dividendology
      @Dividendology  2 года назад

      I’ll have to look into this as it has worked for me in the past. Yahoo finance can be finicky at times, so maybe it’ll be a short term problem that gets fixed in the near future.

    • @jeanphi0078
      @jeanphi0078 2 года назад

      @@Dividendology yes please if you Can have a look...

  • @SM-fb4qb
    @SM-fb4qb 2 года назад

    this works for US stocks but doesn't seem to work for Indian stocks....

    • @vineethsasidharan5067
      @vineethsasidharan5067 8 месяцев назад

      Hi, could you figure this out? Did you add ". ns" to the ticker symbol?

  • @restindeath1755
    @restindeath1755 Год назад

    Its not wokring for me, .. maybe bec of the link?

  • @weishin
    @weishin Год назад

    niceee

  • @interestinginvestments1805
    @interestinginvestments1805 Год назад

    Plenty of sites don't support this

  • @chrisder1814
    @chrisder1814 Месяц назад

    hello

  • @spyxxx566
    @spyxxx566 7 месяцев назад

    It didn't work for a Sales Force table I'm trying to connect

  • @Francisco-Danconia
    @Francisco-Danconia Год назад

    Do you know why some of these import take ages to load or just never load?

  • @naresht350
    @naresht350 5 дней назад

    Thank you for this informative video.
    How about extracting live indicator data ,say at a particular timestamp??

  • @hameesahmed417
    @hameesahmed417 Год назад +1

    Hi bro, I want to import amazon product prices using URLs. But no matter what I do , my content is always empty. Can you help/

  • @BlueRider-t4u
    @BlueRider-t4u 25 дней назад

    It didn't work for me as demonstrated.

  • @ianbraganza5795
    @ianbraganza5795 Год назад +6

    Great video!
    I'm blown away by this feature. Didn't realize it was that easy to scrape without using code

  • @oscar.arroliga
    @oscar.arroliga Год назад +1

    Actually, its no a coma "," its a semicolon ";" between of two arguments.

    • @lylestavast7652
      @lylestavast7652 Год назад

      might be that you're not using the EN_US locale in your settings for googlesheets so it is rightly different for you. you can look up the locale differences on punctuation etc in the help there.

  • @bonchanz
    @bonchanz 6 месяцев назад

    Thank you nice, on the Home Screen in Yahoo its work, but not for the Split statistic. Can you make this for maybe divident yield...😊

  • @CrescentCaribou
    @CrescentCaribou Год назад

    When I try to pull prices from Etsy, it comes up as "Price: $1.70 Loading" instead of "$1.70". Is there a way to get just the price, or will I just have to deal with it?
    It also only works sometimes with Etsy, the xpath doesn't seem to be the same on every page and I can't always find the right part to highlight... It's similar with Amazon, if the price is $5.27 the $, 5, and 27 seem to be on different parts of the code so I can't figure out what to paste