I
I
iron eagle2018-09-07 16:27:51
JavaScript
iron eagle, 2018-09-07 16:27:51

Web page parsing on the user side (client side), perhaps?

The user enters the page, enters the necessary link in the form. Next comes the parsing of the page the link of which he entered. But parsing and all calculations are done on the client side, in his browser. Is this even possible?
Previously, I made a php parser, the page sent a link to my server, where the php handler processed the data (actually parsed the page and gave me the information I needed).
And if so, by what means, libraries or languages? I understand JS is able to do this.
To make the question disappear - all I want is to pull the number of views on a YouTube video. I enter the link to the vidos - and I get the answer - xxxx views. I understand that the load is small, but the subject is in data processing on the user's side, in his browser, at his power.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
D
dollar, 2018-09-07
@dollar

This is not possible due to browser security.
Would you like any site on the Internet to be able to access your site using your cookies, read your personal data and send it to someone unknown? All privacy would collapse around the world in an instant. The stores you visit would read your passwords and post VKontakte messages for you.
The only way out is to do it on the server side.
True, there are all sorts of perversions, you can write your own extension, but this is already beyond the scope of the question.

E
Evgeniy S, 2018-09-07
@evgensenin

In the form of a browser extension - very easy, there are some :)
I often parse sites through a browser extension, and moreover, huge sites of 20k pages each

I
IceJOKER, 2015-03-14
@IceJOKER

Bootstrap , popular, so I decided to try it and got used to it

S
Sergey, 2015-03-14
Protko @Fesor

If I'm too lazy to bother about layout and design - bootstrap (I'm thinking of looking in the direction of angular material ).
In other cases, I prefer to use some separate components.

E
Evgeny Neverov, 2015-03-14
@deMone

Try semantic-ui.com.

M
Maxim Kudryavtsev, 2015-03-14
@kumaxim

If you already have a ready-made template, you just need to add adaptability to it, download the grid component from Bootstrap (the greed system is called, it seems) and add it to your styles.

G
Gluck Virtualen, 2015-03-14
@gluck59

Frameworks come and go... using "pure" languages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question