Web Scraping in Google Sheets" IMPORTHTML, IMPORTDATA, IMPORTFEED, & IMPORTXML - SheetAI App
HTML-код
- Опубликовано: 25 янв 2023
- Learn how to use the IMPORTHTML, IMPORTDATA, IMPORTFEED, and IMPORTXML functions in Google Sheets to web scrape data from websites.
----------------
Code
----------------
Tables: var i = 1; [].forEach.call(document.querySelectorAll('table'), function(x) { console.log(i++, x); });
Lists: var i = 1; [].forEach.call(document.querySelectorAll('ul,ol'), function(x) { console.log(i++, x); });
----------------
Datasets
----------------
Github CSV: github.com/datasets/populatio...
NASA RSS Feed: www.nasa.gov/content/nasa-rss...
----------------
Follow twitter: / sheetaiapp
Install SheetAI App: www.sheetai.app
To Run 100s of variations of gpt3 prompt inside google sheets with the scraped data, Install SheetAI.app
Thank my fellow Indian Bro
To be fair, I wouldn’t call that last example scraping; it seems you’d have to use that JavaScript snippet in some headless browser to achieve any sort of automation or batch processing.
i agree i even thought to remove it but then felt i have told about it before and i do not want to re record the whole
so the IMPORTHTML & IMPORTXML are both being used on HTML pages, but just the query formats are different? (looks like CSS selector vs. XPath)
yes
3:23 Excited ❤,,dear plz tell me that I have , Excel live documents to scrape data in Google drive,also can't download, no permission granted by client,how I solve it
google sheet show error "Imported content is empty." what i do ?
The last example was a bit confusing... And who could how benefit from scraping LinkedIn Info? Recruiters? Who else?
yeah that is just a coding way i found interesting at the time, for linkedin yes i have seen many people trying to scrape linkedin to contact people. It can be people trying to sell their products sending cold message on linkedin not just recruiters.
Sorry, I'm very confused, but it looks like you are providing the answer I'm looking for. I'm trying to scrape used prices off of Amazon using IMPORTXTML. Is your last example the way to avoid error messages?