IMPORTHTML in Google Sheets with error

Asked

Viewed 561 times

1

I’m trying to create a file to get the data from Alexa’s Audience Geography area/table (https://www.alexa.com/siteinfo/twitter.com) but google Sheets whenever I try to pull appears an error.

=IMPORTHTML("https://www.alexa.com/siteinfo/twitter.com";"//*[@table='demographics_div_country_table']") 

The error says "The IMPORTHTML Function value parameter 2 is [@table='demographics_div_country_table'], but it should be one of the following: table, list'."

How to get data from this table (with countries, percentage and rank)?

2 answers

0

I got it using the following requisition:

=IMPORTHTML("https://www.alexa.com/siteinfo/twitter.com";"table";2)

-1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.