Updated to useragents.GetRandomUseragent()
This commit is contained in:
parent
9fd87c0d22
commit
add23fbe9d
@ -69,7 +69,7 @@ func Scrap(id string) (IMDbEntry, error) {
|
|||||||
c := colly.NewCollector(
|
c := colly.NewCollector(
|
||||||
colly.MaxDepth(1),
|
colly.MaxDepth(1),
|
||||||
colly.AllowedDomains("www.imdb.com"),
|
colly.AllowedDomains("www.imdb.com"),
|
||||||
colly.UserAgent(useragents.GetRandomUserAgent()),
|
colly.UserAgent(useragents.GetRandomUseragent()),
|
||||||
)
|
)
|
||||||
|
|
||||||
c.OnRequest(func(r *colly.Request) {
|
c.OnRequest(func(r *colly.Request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user