Changed self-crawling as experimental, cleanup unused features
Some checks failed
Run Integration Tests / test (push) Failing after 1m15s
Some checks failed
Run Integration Tests / test (push) Failing after 1m15s
This commit is contained in:
parent
ca87df5df1
commit
49cb7bb94a
27 changed files with 1731 additions and 832 deletions
6
agent.go
6
agent.go
|
@ -135,10 +135,10 @@ func randomUserAgent() (string, error) {
|
|||
|
||||
r := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
|
||||
// Overall usage: 80% chance for Chromium, 20% for Firefox
|
||||
// Overall usage: 85% chance for Chromium, 15% for Firefox
|
||||
usageStats := map[string]float64{
|
||||
"Firefox": 20.0,
|
||||
"Chromium": 80.0,
|
||||
"Firefox": 15.0,
|
||||
"Chromium": 85.0,
|
||||
}
|
||||
|
||||
// Weighted random selection of the browser type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue