Quantcast
Channel: Kommentare zu: Elegant OOP HTML scraping with DOMDocument
Browsing all 3 articles
Browse latest View live

Von: Twitted by kdeubert

[...] This post was Twitted by kdeubert – Real-url.org [...]

View Article



Von: John

The trouble with this is that your element won’t always have an id to grab with the getElementById method. What if you want to scrape something that’s deep in the hierarchy with no id?

View Article

Von: Karsten Deubert

Hi John, thank you for your comment and sorry for the late response. Yes, your element won’t always have an ID, but one can always use xpath queries to get to anything inside your dom object. The...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images