A quick question for all you pros. I am trying to screen scrape the title of threads on this page http://forums.moneysavingexpert.com/forumdisplay.php?f=36
I am using DOMXPath, looking at the source code for the above page, the title is contained in the following code:
<a href="showthread.php?t=...number representing thread..."
id="thread_title_...number representing thread..."
style="font-weight:bold">TITLE OF THREAD</a>
I started with this code:
$list3 = $xpath3
->evaluate("//a[contains(@style, 'font-weight:bold')]");
However, there are multiple <a style="font-weight:bold">. My question is: can you combine contains? For example, contains @style and @href?
If so, how can you do it with the above href which has a number that changes depending on what thread it is? Can you do [0-9] type thing?
I would appreciate any help I can get!