Skip to content

Instantly share code, notes, and snippets.

=begin
`spoken_data_api_library.rb`
an attempt to make a SDK for the spoken data API.
spokenData API ruby unofficial SDK v1
@author : Pietro Passarelli
@date: 22/07/2015
@url: http://spokendata.com/api
## About
@pietrop
pietrop / issuu_downloader.rb
Created June 29, 2014 18:04
To download magazine from issuu.com when the download option has been disabled. in practice the script doesn't actually download the pdf, but rather download the images of the pages of the flash object and then combines those into a pdf
require 'mechanize'
require 'prawn'
=begin
running from terminal to download any pdf from issuu.com, given
- magazine name
- page count
- document-id
=end
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')