Easy way to do this would be to pass a list of forum ids in the url.
You can use this to exclude forums from the search;
Code:
http://www.forum.com/search.php?do=getnew&exclude=1
This will pull posts only from forums you specify;
Code:
http://www.forum.com/search.php?do=getnew&include=1
You can pass multiple ids at once, like so;
Code:
http://www.forum.com/search.php?do=getnew&exclude=1,2,3,4,5
http://www.forum.com/search.php?do=getnew&include=1,2,3,4,5
This also works with getdaily.