Skip to content

Commit 987fb8a

Browse files
author
B Dog
committed
Update
1 parent 86cc7dc commit 987fb8a

File tree

5 files changed

+543
-8
lines changed

5 files changed

+543
-8
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
goguitar3
2+
.DS_Store
3+
4+
print.html
5+
print.md
6+
date.lua

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Blue Dog
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

app.go

+6-8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"fmt"
5+
"log"
56
"time"
67

78
"github.com/go-rod/rod"
@@ -16,18 +17,13 @@ const (
1617
)
1718

1819
func main() {
20+
log.Println("Start")
21+
1922
browser := rod.New().Connect()
2023

2124
defer browser.Close()
2225

23-
page := browser.Timeout(time.Minute).Page("https://www.fender.com/play/guitar/artists/songs")
24-
25-
page.Window(0, 0, 1200, 600)
26-
27-
fmt.Println("done1")
28-
29-
vv := page.Element(row).Text() // doesnt work if removed?
30-
fmt.Printf("%s \n", vv) //
26+
page := browser.Timeout(time.Minute).Page("https://www.fender.com/play/guitar/artists/songs").WaitLoad()
3127

3228
for _, e := range page.Elements(row + "," + row2) {
3329
bandPrint := e.Element(band).Text()
@@ -37,4 +33,6 @@ func main() {
3733

3834
}
3935
}
36+
37+
log.Println("Stop")
4038
}

go.mod

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/bluedogtwo/goguitar3
2+
3+
go 1.14
4+
5+
require (
6+
github.com/go-rod/rod v0.41.0
7+
8+
)

0 commit comments

Comments
 (0)