Skip to content

Instantly share code, notes, and snippets.

View andrewkolesnikov's full-sized avatar

Andrew Kolesnikov andrewkolesnikov

View GitHub Profile
#!/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'
@andrewkolesnikov
andrewkolesnikov / get.rb
Last active December 13, 2015 23:39 — forked from sxua/get.rb
Exports every wall post from vkontakte.ru to a CSV Updated in Feb 2013, Ruby 1.9
# 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