craigslist.org new posts leecher

Free BrownRecluse scripts provided by SoftByte Labs and users. To use, copy the script and paste it in the BrownRecluse script editor. Modify to your need, save and run.
Post Reply
User avatar
Support
Site Admin
Posts: 1821
Joined: Sun Oct 02, 2011 10:49 am

craigslist.org new posts leecher

Post by Support » Sun Oct 02, 2011 9:41 pm

This script will check craigslist.org every 15 seconds and list the new added posts.

Code: Select all

Output.Clear;
PerlRegEx = Yes;

Link = New(URL);
Link.Location='http://vancouver.craigslist.org/zip/';
LastData = '';

loop

	Link.Get;
	rx = RegEx(Link.Data);
	rx.Mask = '<a href="(http://vancouver\.craigslist\.org/zip/([0-9]+)\.html)">';

	if rx.Match then
	begin
		if LastData <> rx.Value[2] then Run(rx.Value[1]);
		LastData = rx.Value[2];
 	end;

	Pause(15000);

end;
Your support team.
http://SoftByteLabs.com

Post Reply