Created
March 4, 2018 08:46
-
-
Save ykyuen/cdcb8e55a84a55909aff37b7fefa594d to your computer and use it in GitHub Desktop.
driving-web-browser-in-go-03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"github.com/sclevine/agouti" | |
) | |
func main() { | |
// driver := agouti.PhantomJS() | |
// driver := agouti.ChromeDriver() | |
driver := agouti.ChromeDriver( | |
agouti.ChromeOptions("args", []string{"--headless", "--disable-gpu", "--no-sandbox"}), | |
) | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment