New and generic scrape algorithm #11
@ -105,7 +105,7 @@ outer:
|
|||||||
return taskSummery, err
|
return taskSummery, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(anthroveFaves) <= 0 || len(favorites.Posts) != len(anthroveFaves) {
|
if len(pageAnthroveFaves) <= 0 || len(favorites.Posts) != len(pageAnthroveFaves) {
|
||||||
span.AddEvent("No more favorites found to add")
|
span.AddEvent("No more favorites found to add")
|
||||||
log.WithContext(ctx).WithFields(basicLoggingInfo).Info("No more favorites found")
|
log.WithContext(ctx).WithFields(basicLoggingInfo).Info("No more favorites found")
|
||||||
break outer
|
break outer
|
||||||
@ -114,7 +114,6 @@ outer:
|
|||||||
nextPage = favorites.NextPage
|
nextPage = favorites.NextPage
|
||||||
taskSummery.AddedPosts += len(pageAnthroveFaves)
|
taskSummery.AddedPosts += len(pageAnthroveFaves)
|
||||||
}
|
}
|
||||||
break outer
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(newPosts) > 0 {
|
if len(newPosts) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user