errohs 0 Posted March 25, 2013 Report Share Posted March 25, 2013 I am trying to scrape and email address from craigslist then move to next link and scrape the next email and so forth Quote Link to post Share on other sites
merkaba 36 Posted March 25, 2013 Report Share Posted March 25, 2013 Put it in a loop, something along the lines of : loop($list total(%pages)) { navigate($next list item(%pages), "Wait") add item to list(%emails, $page scrape("var displayEmail = \"", "\";"), "Delete", "Global") } Quote Link to post Share on other sites
errohs 0 Posted March 25, 2013 Author Report Share Posted March 25, 2013 Ok i am using the standard edition and do not know how to utilize the html function. I want to be able to click on a link in craigslist and scrape the email and then back to main list of cars for sale and then move to next link and scrape the email and then back out and so forth but i cannot figure out to get the loop to function properly to get the list of 100 people of so listing vehicles so i can mass email them Quote Link to post Share on other sites
merkaba 36 Posted March 25, 2013 Report Share Posted March 25, 2013 define scrape for raw pages { navigate("http://auburn.craigslist.org/cto/", "Wait") comment("replace \'auburn\' and \'cto\' for the area/section you want") add list to list(%pages, $scrape attribute(<outerhtml=w"<a href=\"http://*.craigslist.org/cto/*.html\">*</a>">, "fullhref"), "Delete", "Global") comment("the above uses the \'*\' wild card option to scrape for the urls") } define scrape emails { set list position(%pages, 0) loop($list total(%pages)) { navigate($next list item(%pages), "Wait") add item to list(%emails, $page scrape("var displayEmail = \"", "\";"), "Delete", "Global") } } divider scrape for raw pages() scrape emails() I think this is basically what you're looking for, swap out which sections/area you want to scrape from as commented out. cl_ex.ubot 1 Quote Link to post Share on other sites
bestmacros 60 Posted March 26, 2013 Report Share Posted March 26, 2013 hmm, I have exact same imacros script, maybe I'll convert it to ubot Quote Link to post Share on other sites
errohs 0 Posted April 3, 2013 Author Report Share Posted April 3, 2013 Thank you guys that was very useful in gaining thi information that i need Quote Link to post Share on other sites
errohs 0 Posted April 3, 2013 Author Report Share Posted April 3, 2013 I may be retarded but i swapped to the area that i want but somehow i keep navigating back to auburn Quote Link to post Share on other sites
merkaba 36 Posted April 3, 2013 Report Share Posted April 3, 2013 I may be retarded but i swapped to the area that i want but somehow i keep navigating back to auburn navigate("http://auburn.craigslist.org/cto/", "Wait") That's where you want to swap auburn, and also cto with whichever area of CL you want to use. Alternatively you can load in a list with locations (subdomains) and use something like $next list item. 1 Quote Link to post Share on other sites
errohs 0 Posted April 3, 2013 Author Report Share Posted April 3, 2013 navigate("http://auburn.craigslist.org/cto/", "Wait") That's where you want to swap auburn, and also cto with whichever area of CL you want to use. Alternatively you can load in a list with locations (subdomains) and use something like $next list item. I did that but when it starts going through the pages it ends up switch back to auburn.... do i need to create a new list perhaps>? Quote Link to post Share on other sites
errohs 0 Posted April 3, 2013 Author Report Share Posted April 3, 2013 I am so frustrated i can remove auburn and put in miami and it either stops functioning completly or starts in miami and switches over to auburn. Wth am i doing wrong Quote Link to post Share on other sites
Guest Meathelix Posted April 4, 2013 Report Share Posted April 4, 2013 That is funny it does do just that, I was also wondering what would be the command to send the emails inside a text doc to my main email account. Thank You! Quote Link to post Share on other sites
errohs 0 Posted April 5, 2013 Author Report Share Posted April 5, 2013 any way you can sub for miami and post it? Quote Link to post Share on other sites
merkaba 36 Posted April 5, 2013 Report Share Posted April 5, 2013 Here's a quick example, when I switched I noticed they do their linking a lot differently. I normally don't scrape craigslist this way so I didn't notice it. any way you can sub for miami and post it?cl_ex_2_miami.ubot Quote Link to post Share on other sites
errohs 0 Posted April 12, 2013 Author Report Share Posted April 12, 2013 wow i appreciate it my friend you have been a great help! works like magic Quote Link to post Share on other sites
duncan 0 Posted April 25, 2013 Report Share Posted April 25, 2013 am creating my own Craigslist bot for real estate. am a noob. was curious why you would want to scrape CL for autos. Is this something you are scraping info, then emailing the poster and soliciting them for a service or something? @merkaba, I'm not in the auto industry but I downloaded your script for CL just to see what it did and that thing was scraping like crazy...interesting to see how others are doing this stuff.... can't wait to dig further into this stuff. Best,D Quote Link to post Share on other sites
merkaba 36 Posted May 1, 2013 Report Share Posted May 1, 2013 am creating my own Craigslist bot for real estate. am a noob. was curious why you would want to scrape CL for autos. Is this something you are scraping info, then emailing the poster and soliciting them for a service or something? @merkaba, I'm not in the auto industry but I downloaded your script for CL just to see what it did and that thing was scraping like crazy...interesting to see how others are doing this stuff.... can't wait to dig further into this stuff. Best, D If you're doing a lot of scraping, do yourself a favor and get Aymen's HTTP plugins. It's a lot faster, the only real bottle neck being internet speed. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.