mgrachev / gastly

👻 Create screenshots or previews of web pages

Home Page:https://www.mgrachev.com/projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working?

duramato opened this issue · comments

Ive just installed gastly via ruby gems, and tried runnning but i just got this

# Gastly.capture('http://google.com', 'output.png')
-bash: syntax error near unexpected token `'http://google.com','

@duramato You must first run irb and it run this example:

$ gem install gastly
$ irb
irb(main):001:0> require 'gastly'
=> true
irb(main):002:0> Gastly.capture('http://google.com', 'output.png')
=> "output.png"

Or without irb:

$ ruby -e "require 'gastly'; Gastly.capture('http://google.com', 'output.png')"

Oh ok , i was thinking it was a stand alone package.
And i tried the one liner example with google and it seemed to work, but then i tried with another page and it only worked "partially". http://img.cla46.com/up/146815992883d84c0.png

@duramato There are problems with the display of this website in PhantomJS, i can not do anything about it.