I’m back with some Code …

Posted: July 6th, 2009 | Author: FreedomCoder | Filed under: Open Source, Programming, github, how-to | Tags: , , , | No Comments »

Well, hello again, long time since the last post. I went on vacations, work a lot and did some programming. Let’s talk abount the programming part, since it is the most interesting one. ;)

I created a small library called “Esearchy” capable of searching the internet for email addresses. Currently, we the supported search methods are engines such as Google, Bing, Yahoo, PGP servers, GoogleGroups, etc , but I intend to add many more.
Also, the library searches inside .pdf and .txt files for emails addresses and adds them to the list of found accounts.

For now, there are two main ways of performing a search, “the ruby way”

  1. Esearchy.create "domain.com" do |domain|
  2.    domain.maxhits = 500
  3.    domain.search
  4.    domain.clean {|e| e =~ /<|>/ }
  5.    domain.save_to_file "~/emails.txt"
  6.  end

and the more classic way in which users can create an Esearchy objetc and work on it

  1.  domain = Esearchy.new :query => "domain.com", :maxhits => 500
  2.   domain.search
  3.   domain.save_to_file "~/emails.txt"

For now , that’s it for now , but keep on tuned for more shitty code ajjajaa

(Via 自由編碼人.) Original Link: I’m back with some Code …



Leave a Reply

  • Powered by WP Hashcash