Here’s the code:
(define (in-forum-thread-descriptions forum-number)
(let ([chain (list capture-text
'spacer
(both (is-tag #"a")
(has-class #"thread_title")
(has-attr-match #"href" #px#"showthread\\.php\\?threadid=(\\d+)")))]
[combiners (list text-combiner car)])
(in-match-and-combine chain combiners (get-forum-html-stacks forum-number))))
And here’s the result:
> (for ([desc (in-forum-thread-descriptions 202)])
(printf "~a: ~a\n" (cadr desc) (car desc)))
2779598: Ask General Programming Questions Not Worth Their Own Thread
2836504: Cavern of Cobol FAQ (Read this first)
3048157: iPhone Development Megathread
3161913: WordPress - Development, Themes, Plugins.
2672629: SELECT * FROM Questions WHERE Type = 'Stupid'
2773485: C/C++ Programming Questions Not Worth Their Own Thread
3286714: "Run As Administrator" on Win2008 getting in the way of SQL SSIS jobs?
3263809: Another How Much Money Should I Be Making Thread
3283309: Ada Lovelace Day
2841382: Post screenshots of stuff you're working on!
2675400: Python information and short questions megathread.
2802621: <?PHP questions that don\\'t need their own thread ?>
3246449: Goons for Hire: Get your Developers here
3286440: Powershell
2803713: Coding horrors: post the code that makes you laugh (or cry)
3070034: Javascript questions which don't deserve their own thread.
2692947: Game Development Megathread
2262300: .Net Questions Megathread Part 2
2790475: Django Web Framework: The 'D' is silent dumbass
2718078: Web Design/Development Small Questions - Rev Holy Grail
3286273: Planning/Building Family Websites: What's this family tree doing in my web?
2780384: Java questions which don't deserve their own thread, yet.
3108969: a Vim thread
2662688: Xcode and Cocoa Megathread
2664804: The Perl Short Questions Megathread: executable line noise
3281048: When to (and not to) use goto;
2897255: 3D graphics questions that do not deserve their own thread (OpenGL / Dx10)
3113983: Version Control Questions Megathread (SVN / git / whatever else)
2585949: Ruby on Rails Love-In
2385157: Flash Questions Megathread