Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

4
How to scrape YouTube view count for a data sheet?
Post Flair (click to view more posts with a particular flair)
Post Body

Hi all,

I'm attemping to import/scrape a YouTube viewcount into a sheet, just for tracking purposes. I am aware that I can export channel analytics into a sheet, however that method doesn't quite fit my needs.

I am currently using "=IMPORTXML("X","//div[@class='watch-view-count']") as a function, wherein X is the URL of the video I am trying to get the viewcount from. However, this is returning an "Imported content is empty error".

Any ideas?

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
21,395
Link Karma
398
Comment Karma
20,942
Profile updated: 5 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago