XPath query, IMPORTXML & Google Sheets - Advanced Tutorial

  Рет қаралды 176,390

Learn Google Sheets & Excel Spreadsheets

Learn Google Sheets & Excel Spreadsheets

Күн бұрын

Пікірлер: 272
@theanilbhattarai
@theanilbhattarai 7 жыл бұрын
I watched almost 10+ videos on trying to scrape data from urls in Google sheets. This tutorial made it extremely clear on how to execute what I had planned. Awesome Video, Nicely Explained! Thank you so much ^_^
@baawaa1949
@baawaa1949 7 жыл бұрын
Excellent tutorial! I like the way that it is composed where you encounter unexpected results (duplicates) and go through the troubleshooting process to correct them. Well done!
@skytechbits
@skytechbits 8 ай бұрын
Thank you so much for actual troubleshooting and without any transitions while doing the tutorial.
@josebarragan9227
@josebarragan9227 3 жыл бұрын
MY MANNN!! I'm a newbie and I have been trying to figure this out for hours... but you came through. Nice video your delivery is good. I had no idea I'd been watching this for almost an hour lol
@Cc-vu9mr
@Cc-vu9mr 3 жыл бұрын
I just love this channel. It's perfect for me, I learn so much and improve instantly after seeing a video. The one thing I like the most is that it's done step by step and they're explained in detail.
@MK-ih6wp
@MK-ih6wp 5 жыл бұрын
32:00 I'm loving this SPLIT() function! And displaying the img right in the spreadsheet- SO useful.
@MK-ih6wp
@MK-ih6wp 5 жыл бұрын
Loving ALL the videos on this channel! But this really is one of the best xpath videos I've seen on YT. Thank you!!
@hamzarafiq2459
@hamzarafiq2459 5 жыл бұрын
I would like the proper Xpath to use in Google Sheets such that =IMPORTXML("services.rsna.org/playbook/v1/playbook/complete/cpt/71250",xpath) returns RPID16. Or for example 74177 would return RPID145. You can try IMPORTDATA will the same URL to get the entire XML. In fact, I think the answer is close to something like "//*[local-name()='PlaybookTerm']/@radlexPlaybookId" but I do not get it in sheets.
@takaakiyamada7294
@takaakiyamada7294 3 жыл бұрын
Wonderful tutorial about XPath! As I arrived at this video too late, the structure of the KZbin page had been changed. So it was impossible to get the data by the way this tutorial instructed. Anyway, this tutorial taught me a lot. Thank you so much. :-)
@daytodatainc.2520
@daytodatainc.2520 7 жыл бұрын
What a great tutorial! explains everything from beginning to end. Great Job!!
@tylercroskey2462
@tylercroskey2462 3 жыл бұрын
The video was very helpful. Honestly to good to be on youtube and should be taught in a class.
@LucXX36
@LucXX36 4 жыл бұрын
This guy is cool. You won me over at 33:37 at the latest with your calm and nice kind
@JordiRPuxench
@JordiRPuxench 4 жыл бұрын
Awesome tutorial. It solved in minutes all the doubts I had with the XPath query. Congrats and tx!!
@pablonicolasvillanueva8708
@pablonicolasvillanueva8708 3 жыл бұрын
Dude, you're amazing! So useful info. Thanks a lot!!
@frederics7199
@frederics7199 6 жыл бұрын
Best tuto ever. You definitely have got a gift for explaining stuff man. Keep up the good work!
@hamzarafiq2459
@hamzarafiq2459 5 жыл бұрын
I would like the proper Xpath to use in Google Sheets such that =IMPORTXML("services.rsna.org/playbook/v1/playbook/complete/cpt/71250",xpath) returns RPID16. Or for example 74177 would return RPID145. You can try IMPORTDATA will the same URL to get the entire XML. In fact, I think the answer is close to something like "//*[local-name()='PlaybookTerm']/@radlexPlaybookId" but I do not get it in sheets.
@educacionportable
@educacionportable 3 жыл бұрын
Excellent content!
@salvadorperez5488
@salvadorperez5488 3 жыл бұрын
Fantastic explanaton, and so detailed. I thank you for the time you spend to do such a useful video.
@mikeparker444
@mikeparker444 3 жыл бұрын
This is an excellent video man.
@mosesdunga
@mosesdunga 5 жыл бұрын
Your explanation is awesome. You helped me to reach my goal... my heartfelt thanks
@ronald3921
@ronald3921 4 жыл бұрын
This really helped me out when writing the XPath query, thank you so much for clear instructions. What I don't understand is, why when I inspect element, right-click to 'copy XPath' doesn't provide the correct path, at least not for google sheets
@huynguyen7048
@huynguyen7048 4 жыл бұрын
I think KZbin updated the HTML script, so if we used the his formula, it's no longer working. I'm a HTML newbie, so I can't figure out how to update the formula to grab what we want. lol
@janekaze
@janekaze Жыл бұрын
Excellent tutorial Thankyou.
@nvcworld6423
@nvcworld6423 6 жыл бұрын
i belive this is one of the best video on KZbin that watching , after watching this video I have played more than 48 hrs to pull a table from a site but not got any success , can you please help me in same ?
@crzyofficial7658
@crzyofficial7658 5 жыл бұрын
thanks this wasnt exactly what i needed but i managed to get the just of how to find the exact class i needed
@kritishah1659
@kritishah1659 4 жыл бұрын
This is very helpful sir. I am using smart editor for XPath SelectorsHub, it is very much time saving and helpful. You might like to try it, its a browser plugin.
@pedroivocubas4105
@pedroivocubas4105 4 жыл бұрын
thank you so much for teaching this in such level of didactic
@dodgersv3
@dodgersv3 5 жыл бұрын
Great instructions... your are the best!
@dbtech429
@dbtech429 2 жыл бұрын
Great Video!
@benponderin
@benponderin Жыл бұрын
dude , you're magic
@ianfinlayAustralia
@ianfinlayAustralia 6 жыл бұрын
Excellent presentation
@rolpablo
@rolpablo 4 жыл бұрын
Incleible video!!!!
@idomnychireno
@idomnychireno 3 жыл бұрын
Thank you. I do xml editing for work and your explanation of xpath is very useful for me. I would love to see you explain how to edit xml in mass I.e.all files in one folder and delete child elements that have an specific grand child. This will be very useful for me and others.
@adibzainal3991
@adibzainal3991 3 жыл бұрын
best tutorial ever!
@huynguyen7048
@huynguyen7048 4 жыл бұрын
Very clear video instruction about XPath query. Thank you for your effort. I'm trying to learn as much as I can from you. You're genius. I have one question that I hope you can help me. It seems like youtube updated its script. No more Ul & Li in the script. Instead Div has Id name now. How can I refer the Div with ID name in my formula? Thank you so much and I really appreciate if you can help me with this stupid question
@PropertiDong
@PropertiDong 4 жыл бұрын
This is a good tutorial for a newbie like myself, thank you... !
@TheRangeControl
@TheRangeControl 4 жыл бұрын
Why did it only pull the title and NOT the link when you did the anchor at : #10:20 ? I mean, the encloses both a title AND a link, so why only part of it?
@Kuzmitch2010
@Kuzmitch2010 3 жыл бұрын
Thank you, it's super helpful!
@tibolefevre
@tibolefevre 7 жыл бұрын
What a great video. Awesone. Thanks a lot for your job !
@billjones3720
@billjones3720 5 жыл бұрын
Very informative. Thank you.
@allfootage3558
@allfootage3558 3 жыл бұрын
Very Informative Tutorial, I learn alot from this. Just one more question How to scrape the items loaded via a "view more" button in google sheets.
@veevee7555
@veevee7555 Жыл бұрын
Super sir thanks 🙏
@Xein24
@Xein24 2 жыл бұрын
for tag .... which should be Xpath? please tell
@אריאלבריל
@אריאלבריל 5 жыл бұрын
Great video! Thanks 😁😁
@phulm
@phulm 5 жыл бұрын
In June 2019 the @class addition no longer seems to work as advertised, even with WebScraper or Scraper.
@suleymanozturk746
@suleymanozturk746 2 жыл бұрын
Thx . Perfect 👍👍👍👍
@TheDoggyOnTheWall
@TheDoggyOnTheWall 5 жыл бұрын
Great detailed tutorial. Thanks!
@J-J_du4nb
@J-J_du4nb 3 жыл бұрын
Easiest way to find the XPath on a page is: - Right click section or word > inspect - Then right click highlighted line in "Inspect Elements" that just popped up - Click copy > scroll down and click "Xpath"
@itsJLa
@itsJLa 5 жыл бұрын
Thank you so much for your amazing and easy to follow tutorials! I can't seem to figure out how to resolve the "Error Resource at url contents exceeded maximum size" on Google Sheets using importXML and was wondering if you had a video covering that subject.
@ExcelGoogleSheets
@ExcelGoogleSheets 5 жыл бұрын
Unfortunately it might be impossible to resolve this problem. At least not without doing some crazy complicated things.
@itsJLa
@itsJLa 5 жыл бұрын
@@ExcelGoogleSheets I was browsing on different forums to see if there are solutions around this issue and came accross a Reddit page with someone having the same issue www.reddit.com/r/googlesheets/comments/an7qbb/scrape_website_directory_for_names_with_custom/ And the page with the solution...but I have yet to get it to work properly webapps.stackexchange.com/questions/97629/google-sheets-why-wont-importxml-work-on-this-sheet/114124#114124
@guruntr6481
@guruntr6481 6 жыл бұрын
Very well done...
@bobocathk
@bobocathk 4 жыл бұрын
Great training. If only top 30 videos data can be listed by using this method?
@allanbsoliveira1
@allanbsoliveira1 4 жыл бұрын
it helped me a lot. thanks !
@RaelDilldeMello
@RaelDilldeMello 7 жыл бұрын
Amazing channel... all your videos man, your rock! Tx so much :)
@GeorgWuitschik
@GeorgWuitschik 4 жыл бұрын
Great video, thank you very much!
@RoberioDias
@RoberioDias 7 жыл бұрын
Very good lesson! Thanks a lot!
@marcmolloy5446
@marcmolloy5446 6 жыл бұрын
Awesome video... but my problem is that no matter what I do my queries come up "Empty"
@dishydez
@dishydez 4 жыл бұрын
Its probably not stored via Xpath then. I usually use ImportHTML if this is the case. You could also use other Import functions. Also look out for his video on import JSON that is also helpful
@aliosmanozen196
@aliosmanozen196 6 жыл бұрын
Great tutorial, thank you very much.
@DavidElstob73
@DavidElstob73 3 жыл бұрын
Amazing timesaver for economic reports, but it is a concern if the website changes and the data is wrong, so still need to have a quick glance at the website and adding other safety checks. For example, I'm going to include a text column with my four numerical columns, so I can easily see if it has changed, because numbers will be harder to check at a glance than something like "percent of GDP".
@moneymaker8227
@moneymaker8227 2 жыл бұрын
Good tutorial.!! I have a question.. I would like to know how import data to google sheet in cells that are already filled by other data. ?? I'm trying to automate my stocks imported financial data (income statement, balance sheet, cash flow statement) but I'm only able to import one by one because google sheet cells are already filled by the first stock data I imported.! How Can I RESOLVE This Issue.?? Thanks
@binodmaharjan9981
@binodmaharjan9981 4 жыл бұрын
Very nice tutorial. But I have a problem that how to get data if the data is long and splitted into multiple pages like we have to click next button to load that data into the webpage. Please help me out
@JesseGeorgePenner
@JesseGeorgePenner 4 жыл бұрын
Is there a reason why '=IMPORTXML("kzbin.infovideos","//ul/li//h3/a")' doesn't work anymore? I tried the exact same formula from this video in a google sheet, and I get an #N/A error saying the imported content is empty
@akshaykulkarni5626
@akshaykulkarni5626 4 жыл бұрын
I'm having the same issue as well..
@aquinox77
@aquinox77 2 жыл бұрын
How to optimize it so it only calls some parts of the data at a particular time? (too many calls stops data from loading)
@bakataoako4202
@bakataoako4202 3 жыл бұрын
hi I like your video, i just wanna ask if is there any way to get the dynamic data?
@심심-p7z
@심심-p7z 2 жыл бұрын
thanks for nice explanation. i tryed to apply your explanation to scrape google news but it didn't work. can you make video to google news scrape using google sheet? especially you google certain words with "recent " filter.
@mvgiugni65
@mvgiugni65 3 жыл бұрын
What about there is another page and you have to ask the webpage to go next page, to collect the rest of it?
@Sulaimangalib
@Sulaimangalib 3 жыл бұрын
I want to grab data from a site, but some of them have missing info, and it doesn't put a blank cell for the missing info. Is there any way to solve the problem?
@sachidanandsadhguru3703
@sachidanandsadhguru3703 4 ай бұрын
Thank you very much. But, can you or anyone reading this guide me to use IMPORTXML to extract a particular row which contains specific text like "EPS" in its first column from a Table which doesn't have a name?
@johnhe9984
@johnhe9984 2 жыл бұрын
Can you post a video on how to import desired data from yahoo finance into google sheets? for example, total debt in balance sheet.
@abdulwali4920
@abdulwali4920 Жыл бұрын
hi there, can you please tell me how can i use a (google search link) to search anything on google and grab top 3 links from google and then paste it on the cell infront of cell (containing google search link)
@LucasErtola
@LucasErtola 4 жыл бұрын
Thanks @learn Google Spreasheets. Super useful video. But you solve the partial loading, or loading when scrolling? to import all data and not only the one that loads first.
@bmr9779
@bmr9779 3 жыл бұрын
How do you import a table when the table on the website changes by criteria(#example the websites table can change data of nba players stats from last 5 games to season long)?
@JesseGeorgePenner
@JesseGeorgePenner 4 жыл бұрын
Can you tell me why, when I right click the element and copy as Xpath or full Xpath, and paste it into my formula, it doesn't work?
@timothyrayner3626
@timothyrayner3626 3 жыл бұрын
Link to the microsoft reference you used would be useful
@brunocesar2283
@brunocesar2283 4 жыл бұрын
Is it possible to use the importdata function to bring an account's contact data?
@jameswotring9432
@jameswotring9432 5 жыл бұрын
Does this list update automatically? for example your views column?
@mariebeyssac1749
@mariebeyssac1749 3 жыл бұрын
Thank you!!!
@dcgtk
@dcgtk 7 жыл бұрын
28:55 contains attribute 31:10 SPLIT
@giamar3026
@giamar3026 5 жыл бұрын
Very usefull!, as all your videos. Thk you. One question: i practice on a market page and could sucesfully extract products and prices, but when i wanted to extract special prices, as not every product have an special price, the sequence cut and stop when system found one product without special price, so the followings products didn't bring me anything, no matterthey have or not special prices,. Is there a way to fix this?
@rbendzsuk
@rbendzsuk 3 жыл бұрын
How do you auto-update data on your Sheets with data that changes on a web site like a crypto currencies on or stock??
@SayafAmer
@SayafAmer 2 жыл бұрын
Thank you for this amazing tutorial. However, I followed the same steps, but I could n't get the same results you had. Maybe KZbin has added protection to avoid scraping. Can you please check? If everything is fine, that means we need more practice and watch more tutorials from you. So It would be apprectiated if you could arrange another tutorial. :)
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
KZbin now loads data using JavaScript, so this won't work on KZbin anymore.
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
Otherwise everything is the same.
@alexzhang5816
@alexzhang5816 5 жыл бұрын
Hi, I am trying this on a website, the information I am seeing through chrome is not the same as I am getting in sheet from the URL in the address bar. I am assuming the site has some kind of web scraping countermeasures. Is there any way to get around it?
@igorchernysh9764
@igorchernysh9764 6 жыл бұрын
@Learn Google Spreadsheets I have a question, is there any command or smth that will help to get data which can be retrieved only after pressing a specific button on a page like "see more" or "change currency" or "left/right"? Pressing a button doesn't change the initial url, so I can't use a modified ulr for importxlm.
@ExcelGoogleSheets
@ExcelGoogleSheets 6 жыл бұрын
You'll need to write a script for that. Not in stock functionality.
@walkingowl6810
@walkingowl6810 7 жыл бұрын
thank you so much! Precise and clear :D
@dimitrioschantzis4647
@dimitrioschantzis4647 3 жыл бұрын
Great video, I apply the importxml function to Google Sheets and other times it works and other times (without changing anything) it gives me #N/A into cell. What can I do? Thank you very much
@tylercroskey2462
@tylercroskey2462 3 жыл бұрын
Does anyone know if import XML can be used for any website? I have been trying to get data from Terapeak product research and it won't even allow me to extract a title from the website. It keeps saying imported content is empty. Thanks!
@igorchernysh9764
@igorchernysh9764 6 жыл бұрын
@Learn Google Spreadsheets Thanks for the video!
@nssdesigns
@nssdesigns 4 жыл бұрын
So if you add a new video and refresh or open the Google Spreadsheet it will automatically propagate the Sheet with additional data?
@ExcelGoogleSheets
@ExcelGoogleSheets 4 жыл бұрын
Generally yes, but it will not work on KZbin anymore.
@hardikpanchal8106
@hardikpanchal8106 6 жыл бұрын
Thank u so much for the video I want to know that the information if change daily than in spreadsheet also it's changed automatically or we have to keep refresh the sheet
@5953kim
@5953kim 6 жыл бұрын
Per one hour refresh importxml function automatically.
@3BoxCreation
@3BoxCreation 2 жыл бұрын
An error like this comes after some time. Is that it? How to solve it? " Error Could not fetch url: "
@Victor-vp7kn
@Victor-vp7kn 4 жыл бұрын
Hello, I would like to know if it possible to have a one time class ( 30 min. ~ 1 hour) at a fair price. I need to extract certain info from a webpage and import into googlesheets? Thank you Vic
@damiannika1296
@damiannika1296 3 жыл бұрын
Me to please. dn@askdamian.net. Thanks in advance!
@9ebooks
@9ebooks 5 жыл бұрын
Hello sir how to seperate by comma instead of using first or last li
@outlandvisual7421
@outlandvisual7421 4 жыл бұрын
Why not use copy xpath in the inspector as opposed to manually figuring out the path syntax?
@sciences-sci
@sciences-sci 3 жыл бұрын
How do you update google sheet? Thanks
@asyikbrowsing200
@asyikbrowsing200 5 жыл бұрын
What if I want to scraping data on a website that requires a login?
@justfly2525
@justfly2525 7 жыл бұрын
All of your videos are awesome... I'm trying to be lazy... I was able to double click directly on the element that I wanted then hit... copy... copy x path. That seemed to give me the complete and exact x path. Having said that gsheets said it was empty and it didn't work.
@TheQAAA
@TheQAAA 7 жыл бұрын
Hello, the video is great , I there way to get the xPath of anything without going in all this instructions? best regards
@Garen1
@Garen1 4 жыл бұрын
Amazing video! I was wondering if there is a way I can contact you via email with a problem I am having regarding getting specific data into google sheets?
@binodmaharjan9981
@binodmaharjan9981 4 жыл бұрын
In my case, data table is splited into 2 pages of same url: merolagani.com/StockQuote.aspx I am able to get data from page 1 but not able to get data from page 2 from that url. Please help me out.
@Shkur777
@Shkur777 5 жыл бұрын
Thank you for tutorial. What about auth credential? Token or login/pass
@ExcelGoogleSheets
@ExcelGoogleSheets 5 жыл бұрын
This doesn't support login/pass unless it can be passed as a part of the URL. You will have to write a script with Apps Script UrlFetchApp.
@SquaredbyX
@SquaredbyX 5 жыл бұрын
Why //ul/li instead of just //li? // uses recursive descent, which finds every tag in the document. //ul/li checks every ul in the document for a direct child li. Why not just start at //li??? and have the check start at every li tag in the document?... What are the guidelines on how far out to begin your query?
@sajmosajmon5774
@sajmosajmon5774 2 жыл бұрын
How to import data by function for example importxml and SAVE data automatically?
@rafsan_jane
@rafsan_jane 5 жыл бұрын
Now if there is no "ul or li" only "div" there how can I use IMPORTXML for those sites?
@wiganagames
@wiganagames 3 жыл бұрын
I seriusly love u
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
:)
Google Sheets - Search,  QUERY function
22:49
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 229 М.
Apps Script UrlFetchApp API, Get JSON data, Build Google Sheets Function, Advanced Tutorial
47:18
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 153 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
5 Functions for Web Scraping in Google Sheets
10:14
Eamonn Cottrell
Рет қаралды 18 М.
Web Scraping in Google Sheets! (IMPORTXML FUNCTION)
7:32
Dividendology
Рет қаралды 104 М.
How to use the powerful MAP Function in Google Sheets
19:02
Ben Collins
Рет қаралды 9 М.
Google Sheets IFS, Join, ISBLANK, TRIM, Unique, VLookup, Cleaning Data Tutorial - Practical Examples
21:47
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 46 М.
Google Sheets - Get Matching Values From Two Lists / Ranges Tutorial
19:53
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 82 М.
Google Sheets Query Function Explained
12:35
Leila Gharani
Рет қаралды 331 М.
Google Sheets QUERY Function Tutorial - SELECT, WHERE, LIKE, AND, OR, LIMIT statements - Part 1
19:30
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 695 М.
Excel Power Query Tutorial - M Language
56:02
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 21 М.