I hereby claim:
- I am saramic on github.
- I am saramic (https://keybase.io/saramic) on keybase.
- I have a public key ASD9cA9Dce_ztUWlc8FziT_nYn_vM1b1I0xENEAare4oEQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# based on http://dcparker.github.com/ruby-gmail/ | |
# get latest 10 email addresses from GMail inbox emails | |
gem install gmail | |
export USRENAME=my_name PASSWORD=my_password | |
ruby -e 'require "rubygems"; require "gmail"; \ | |
Gmail.new(ENV["USERNAME"], ENV["PASSWORD"]){|gmail| \ | |
gmail.inbox.emails.each_with_index{|email, index| \ |
require 'nokogiri' | |
require 'open-uri' | |
spaces = [] | |
doc = Nokogiri::HTML(open('http://www.realestate.com.au/home-ideas')) | |
doc.css('nav.hi-main-nav>ul>li>a').each do |anchor| | |
space = anchor.attribute('href') | |
space_url = 'http://www.realestate.com.au' + space.text.sub('space', 'results') + "/list-1" | |
doc_list = Nokogiri::HTML(open(space_url)) | |
spaces << { |