How to get web page data with Google Sheets
Google Sheets has a convenient little formula that allows you to extract lists or data sheets of web pages into tables of your choice. That formula is called importhtml.
Web scraping or extracting data is not an easy task. But what many people do not know is that it is not necessary to be a hacker to collect data from websites. In fact, you don't need any programming skills.
A myriad of tools like browser extensions exist to help ease the necessary technical knowledge. But even if they are a bit "too much" for you, do not worry. Google Sheets will come to help you
Google Sheets has a handy little formula that allows you to extract lists or data sheets of web pages into your chosen worksheet. That formula is called importhtml and works like this:
Find the site you want to retrieve data
For example, consider the list of top technology companies in terms of revenue on Wikipedia:
https://en.wikipedia.org/wiki/List_of_largest_technology_companies_by_revenue
Specify the table or list you want to extract data from
In this case, select the second table on the page, in the '2019 list' section.
Now, enter the following in the arbitrary box (suppose A1)
=IMPORTHTML('https://en.wikipedia.org/wiki/List_of_largest_technology_companies_by_revenue', 'table', 2)
As you can see, you will have to declare three things in the formula: the URL you want to get data from, the type of data (table or list) and the position (in this case, the second table, so , the number in the formula is 2 ).
Hit Enter
and the table will appear in the worksheet:
To go to the next level and actually convert or delete that data, first make sure that it is put in a static state instead of linked data. To do so, select the table, right-click in cell A1 , select Paste special> Paste values only .
All operations are completed. Feel free to do what you like with data in Google Sheets!
Hope you are succesful.
You should read it
- How to align spreadsheets before printing on Google Sheets
- How to link data between spreadsheets in Google Sheets
- How to use Filter function on Google Sheets
- Tricks using Google Sheets should not be ignored
- How to create graphs, charts in Google Sheets
- How to create a phone number can be called on Google Sheets
- Instructions for importing JSON into Google Sheets
- How to set up the right to edit spreadsheets on Google Sheets
- 5 Google Sheets features you should know
- How to insert checkboxes on Google Sheets
- How to highlight duplicate content on Google Sheets
- How to write notes, comments on Google Sheets
Maybe you are interested
Is the sensor vibration reduction technology unique, making Apple want to equip its new iPhone? How to charge iPhone X twice as fast? How to make beautiful cherry blossoms to welcome beautiful spring but very easy What is success? See 12 definitions of the success of the most successful people in the world! Tell the iPhone 4 to be iPhone X, Americans still believe it and say it is the future of the phone This is the biggest problem of iPhone X