jboursiquot / bulkippt

Imports bookmarks into your kippt.com account in bulk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bulkippt

Code Climate Build Status

Allows you to upload your bookmarks to kippt.com in bulk. You'll need a kippt.com account (of course) from which you'll obtain your API token along with your username. From there, all you need is a CSV file with url, title and description headers and the loader will push those links to kippt.com on your behalf.

Installation

Add this line to your application's Gemfile:

gem 'bulkippt'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bulkippt

Usage

require 'kippt'
require 'bulkippt'
require 'yaml' # if you store your creds in a yaml file

creds = YAML.load(File.open(File.expand_path('./config/my_kippt_creds.yml')))
service = Kippt::Client.new(username: creds['username'], token: creds['token'])
loader = Bulkippt::Loader.new(service, Logger.new(STDOUT))
csv_path = File.expand_path('./my_bookmarks.csv')
bookmarks = loader.extract_bookmarks csv_path
submitted = loader.submit_bookmarks bookmarks

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Imports bookmarks into your kippt.com account in bulk

License:MIT License


Languages

Language:Ruby 100.0%