I expect that the table in type-ii.php is auto-generated. As in so many other places where KoL programatically generates HTML, it generates bad HTML and expects the Browser to sort it out.
I've extracted the key things to look at in order to parse that table:
PHP:
<table>
<tr>
<th>Last Month</th>
<th>Category</th>
<th>Items</th>
</tr>
<tr class="expired">
<td nowrap valign="top">2004-12</td>
<td valign="top">Items</td>
<td valign="top">Crimbo pressie, wrapping paper </tr>
<tr class="soon">
<td nowrap valign="top">2011-11</td>
<td valign="top">Campground</td>
<td valign="top">Grumpy Bumpkin's Seed Catalog </tr>
<tr class="">
<td nowrap valign="top">2011-12</td>
<td valign="top">Clan Item</td>
<td valign="top">Fax Machine </tr>
</table>
The rows are tagged as being "expired", "soon", or "". If it is "expired", the item is currently unavailable.
The first datum in a row is the last month the item is available. For KoLmafia's purposes, we don't care; the row being "expired" tells us all we need to know.
The second datum can be "Items", "Campground", Bookshelf", "Familiars", "Skills", "Clan Item".
The third datum in a row is a comma separated list of items, with extra whitespace - and no closing tag for the datum.
I propose the following:
1) If we detect that your path is "Trendy", parse this table. Generate six boolean hash tables - Items, Campground, and so on - with string keys and value of "true" or "false", depending on whether the thing is currently available.
2) Define a function - boolean isTrendy( String type, String thing ) - which looks up thing in the appropriate table and returns true or false. If it is not in the table, return true. For that matter, if you are not Trendy, skip the lookup and return true
3) And, all over KoLmafia, filter items, skills, bookshelf summons, familiars, and so on, as needed.
I don't have a lot of time right now, but I think doing 1 & 2 would be easy enough and fun, and would allow others to do aspects of 3 at their leisure. I'll see what I can do, this afternoon, although I'm not actually going to ascend again until December.