Monday, October 08, 2007

Tip for dealing with session IDs in URLs

Brian Armknecht gives this tip for dealing with session IDs in URLs:
The nucat command wasn't working because the URL required a session ID that changes periodically. The new version of the command visits the page, scrapes the new session ID, then includes it in the search URL. I think it's sort of a cool trick.

http://nucat.library.northwestern.edu/cgi-bin/Pwebrecon.cgi?Search_Arg=%s&SL=None&Search_Code=GKEY&PID={scrape -tokens pid%3D %22 -dirs 0 0 -url http://nucat.library.northwestern.edu/}&CNT=25&HIST=1