http://ln.hixie.ch/?start=1037910467&count=1
http://ln.hixie.ch/?start=1137740632&count=1
| #!/usr/bin/env ruby | |
| # | |
| # SHRUG Blocket Scraper | |
| # | |
| # Author: Peter Hellberg <@peterhellberg> | |
| # Microformat: hListing <http://microformats.org/wiki/hlisting-proposal> | |
| # License: WTFPL | |
| require 'cgi' | |
| require 'rubygems' |
| # Usage: | |
| # 1. Install required gems | |
| # $ sudo gem install mechanize progressbar | |
| # | |
| # 2. Run with [vk.com|vkontakte.ru] [remixsid cookie] and [your_profile_id] | |
| # $ ruby ./fetch.rb vk.com a528621366f13fb859a120b3a8c357dc98c1f7d93f5e66666662 8666676 | |
| # 54% |ooooooooooooooooooooooooooooooooooooooooooooooooooooo | ETA: 0:01:49 | |
| # | |
| # 3. Enjoy the output |
| require "rubygems" | |
| require "dm-core" | |
| require "dm-tags" | |
| require "dm-validations" | |
| require "spec" | |
| class Contact | |
| include DataMapper::Resource | |
| property :id, Serial |