D
D
Daniel2018-04-09 15:23:54
YouTube
Daniel, 2018-04-09 15:23:54

How Youtube sends view data, how to parse it?

I wanted to parse the number of views, not how.
I went through all the requests, I thought it reads json, like in textbooks, but I didn’t find anything, well, there’s also no information in the source code of the page, at least Ctrl-F doesn’t find the same number as on views. Yes, where are the numbers coming from?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Dart, 2018-04-09
@daniil14056

YouTube has an API, it should give views there.
The source code has:

"viewCount":{"videoViewCountRenderer":{"viewCount":{"simpleText":"21 views"},

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question