Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Keinberger committed May 24, 2022
1 parent 31cae32 commit 61539b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ import (
func main() {
website := scraper.Website{
URL: "https://wikipedia.org/wiki/wikipedia",
LookUpElements: []scraper.LookUpElement{
Elements: []scraper.Element{
{
Element: scraper.Element{
HtmlElement: scraper.HtmlElement{
Typ: "h1",
Tags: []scraper.Tag{
{
Expand All @@ -65,7 +65,7 @@ func main() {
},
},
{
Element: scraper.Element{
HtmlElement: scraper.HtmlElement{
Typ: "td",
Tags: []scraper.Tag{
{
Expand Down Expand Up @@ -105,8 +105,8 @@ func main() {
panic(err)
}

lookUpElement := scraper.LookUpElement{
Element: scraper.Element{
element := scraper.Element{
HtmlElement: scraper.HtmlElement{
Typ: "li",
Tags: []scraper.Tag{
{
Expand All @@ -116,7 +116,7 @@ func main() {
},
},
}
content, err := lookUpElement.ScrapeTreeForElement(htmlNode)
content, err := element.ScrapeTreeForElement(htmlNode)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 61539b7

Please sign in to comment.