D
D
doublench212015-07-11 12:53:54
PHP
doublench21, 2015-07-11 12:53:54

A good php parser with an understanding of complex queries?

For example, there is a site: dota2.gamepedia.com/Loading_Screen
I'm trying to access the following element:

#mw-content-text table.navbox tbody tr td table tbody tr:nth-child(7)

Tried to work with Simple Html Dom Parser and Nokogiri, but they don't understand this kind of requests.
How would I be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2015-07-11
@miraage

have you tried phpQuery?

E
Elmechador, 2015-07-13
@Elmechador

XPath, on the other hand, understands Simple Html Dom Parser perfectly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question