Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
jakopako committed Nov 5, 2023
1 parent 5ce533e commit 102bd74
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions scraper/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,6 @@ func (c *Scraper) fetchPage(doc *goquery.Document, nextPageI int, currentPageUrl

if nextPageI == 0 {
newDoc, err := fetchToDoc(currentPageUrl, c.fetcher, fetch.FetchOpts{})
// res, err := fetcher.Fetch(currentPageUrl)
// if err != nil {
// return false, "", nil, err
// }
// newDoc, err := goquery.NewDocumentFromReader(strings.NewReader(res))
if err != nil {
return false, "", nil, err
}
Expand All @@ -433,14 +428,6 @@ func (c *Scraper) fetchPage(doc *goquery.Document, nextPageI int, currentPageUrl
// check if node c.Paginator.Location.Selector is present in doc
pagSelector := doc.Find(c.Paginator.Location.Selector)
if len(pagSelector.Nodes) > 0 {
// fetcher = &fetch.DynamicFetcher{
// UserAgent: userAgent,
// Interaction: types.Interaction{
// Selector: c.Paginator.Location.Selector,
// Type: types.InteractionTypeClick,
// Count: nextPageI, // we always need to 'restart' the clicks because we always re-fetch the page
// },
// }
ia := types.Interaction{
Selector: c.Paginator.Location.Selector,
Type: types.InteractionTypeClick,
Expand Down

0 comments on commit 102bd74

Please sign in to comment.