PHP Classes

Extract div data or tags text from Web pages: I need to extract the values that are in divs of the same class

Recommend this page to a friend!
  All requests RSS feed  >  Extract div data or tags text from We...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Extract div data or tags text from Web pages

Edit

Picture of Guilherme Soratto by Guilherme Soratto - 9 years ago (2015-01-02)

I need to extract the values that are in divs of the same class

This request is clear and relevant.
This request is not clear or is not relevant.

+1

I need to extract the values that are in divs of the same class.

I have only the name of the div class, for example, a list of div <div class = "event-id" /> and would like to get the values of all div with the "event-id" class, values of a specific tag inside the div or directly in it.

Ask clarification

2 Recommendations

Very simple page details: Parse and extract Web page information details

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of zinsou A.A.E.Moïse by zinsou A.A.E.Moïse package author package author Reputation 5840 - 6 years ago (2017-12-22) Comment

one may try this...


HTMLPP: Parse HTML code and manage the DOM structure

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Manuel Lemos by Manuel Lemos Reputation 23700 - 9 years ago (2015-01-09) Comment

This class can be used for extracting HTML nodes of elements that match a given CSS class using the getElementsByClassName function in PHP, just like you can use it in JavaScript.


Recommend package
: 
: