So i'm trying to make a script that reads from forum last post first word and displays it on my site
vBulletin forum
http://www.forum.com/showthread.php?85788&goto=newpost

it uses javascript, so I can't get any info :S
My script so far

<?php
header("content-type: text/plain");

$myurl = 'http://www.forum.com/showthread.php?85788&goto=newpost';

$curl_handle = curl_init();
curl_setopt ($curl_handle, CURLOPT_URL, $myurl);
curl_setopt ($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl_handle, CURLOPT_CONNECTTIMEOUT, 1);
$buffer = curl_exec($curl_handle);

curl_close($curl_handle);   
echo $buffer;
?>

HI,

You should HTML DOM Parser.. search on it on google..and you can parse the target page as simple as

echo file_get_html($myurl)->plaintext; 

Of course, you can do a more advance filtering. It all depends on what items you want to scrape.

you will need to find the http request javascript uses to pull the post, though i'm wondering if i should help or not

okey

It would be much easier to answer this if there was a link to the actual content you were trying to scrape. Else we can provide only theoretical answers that won't do you much good in the practical application.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.