cider-load-test/gdocsync
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Sync with Google Docs
=====================
converting html docs to markdown.
Much todo.
require 'lib/gdocsync'
[RAILS_ROOT =]
GOOGLE_EMAIL = '...'
GOOGLE_PASS = '...'
GOOGLE_USER = '...'
docs = Gdocsync::Document.find(:all)
doc = Gdocsync::Document.find_by_title("Foo")
Include document body:
docs = Gdocsync::Document.find(:all, :fetch)
doc = Gdocsync::Document.find_by_title("Foo", :fetch)
doc.raw #raw html body
doc.safe_html #sans script and form tags
doc.textile #raw => textile => any left-over html escaped.
p doc.clothe #as textile, and back to sanitised html via RedCloth
For interfacing with Picasa, see:
http://github.com/broughcut/picasync