I
I
Innokenty Ivanov2015-04-01 12:35:05
JavaScript
Innokenty Ivanov, 2015-04-01 12:35:05

How to extract the necessary data from HTML?

I am writing an application for Windows/Windows Phone using HTML+JS. It GET'om receives HTML-structure from any site. This structure is stored in a variable and in the application's local data. I want to extract news headlines from this structure, well, and other data.
And what should I do with it, with this HTML? I won't put my mind to it. Regulars - not that, I don’t want to connect JQuery, IndexOf is so-so. I would like to connect a JS library that would solve all my tortures, but I don’t know those. Went through a bunch of articles and got confused.
PS And to sculpt a pars server - well, it's easier to write a diploma.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Innokenty Ivanov, 2015-05-03
@Kenya-West

Found a solution - DOMParser

A
Anton Fedoryan, 2015-04-01
@AnnTHony

There is an HTML Agility Pack library
I don’t know for sure if it works with JS, but I used it with C #.

I
Ilham Karimov, 2015-04-01
@Ilham

It would be easier to use jQuery, throw an object at it and do whatever you want with it.
veynik.ru/jquery/jquery-filtering

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question