Not really a deal, but I figured I would post it here anyways. If anyone objects, just report the post and a mod will probably move it, no worries.
Anyhow, I always like to browse by price, and it's real easy on newegg.com. Monarch, on the other hand, doesn't have anything of the sort. So, since I haven't had a chance to use regular expressions for a while, I figured I'd brush up.
I wrote this little script today for myself, but since I'm such a great guy, I'll share it with the rest of the [H]ard|community.
Just head over to http://shahyar.net/monarch/ and enter the URL of a category at MonarchComputer.com. For example, this page lists all of the PCI-E video cards from their site:
http://shahyar.net/monarch/index.ph...tore_Code=M&Category_Code=VC-PCIE&submit=List
I only wrote it in two or three hours and haven't tested it much, so... Yeah.
For anyone who wants to know how it works, it basically grabs the page from Monarch's site and uses a single regular expression (a big one, I might add) to parse out everything. Because Monarch doesn't always use the same markup, there may be some times that it doesn't properly list an item (most likely won't list the MIR, IR and stock if this happens, but I haven't found anything that causes it yet - someone will).
Anyhow, I always like to browse by price, and it's real easy on newegg.com. Monarch, on the other hand, doesn't have anything of the sort. So, since I haven't had a chance to use regular expressions for a while, I figured I'd brush up.
I wrote this little script today for myself, but since I'm such a great guy, I'll share it with the rest of the [H]ard|community.
Just head over to http://shahyar.net/monarch/ and enter the URL of a category at MonarchComputer.com. For example, this page lists all of the PCI-E video cards from their site:
http://shahyar.net/monarch/index.ph...tore_Code=M&Category_Code=VC-PCIE&submit=List
I only wrote it in two or three hours and haven't tested it much, so... Yeah.
For anyone who wants to know how it works, it basically grabs the page from Monarch's site and uses a single regular expression (a big one, I might add) to parse out everything. Because Monarch doesn't always use the same markup, there may be some times that it doesn't properly list an item (most likely won't list the MIR, IR and stock if this happens, but I haven't found anything that causes it yet - someone will).