File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,7 @@ Type: `string`
104104
105105The header value of ` user-agent ` used in API requests.
106106
107- Default:
108- ```
109- Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0
110- ```
107+ Refer to [ src/config.json#userAgent] ( src/config.json#L111 ) for the default user agent.
111108
112109##### _ proxyAgents_
113110Type: [ ` Got['Agents'] ` ] ( https://github.com/sindresorhus/got/blob/v11.8.6/source/core/index.ts#L60-L64 ) Default: ` undefined ` Since: ` v2.4.0 `
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const cheerio = require('cheerio')
33const fs = require ( 'node:fs' )
44const path = require ( 'node:path' )
55
6- const DEFAULT_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119 .0.0.0 Safari/537.36 Edg/119 .0.0.0'
6+ const DEFAULT_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122 .0.0.0 Safari/537.36 Edg/122 .0.0.0'
77
88; ( async ( ) => {
99 // fetch supported EPT languages
Original file line number Diff line number Diff line change 108108 " vi" ,
109109 " cy"
110110 ],
111- "userAgent" : " Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119 .0.0.0 Safari/537.36 Edg/119 .0.0.0"
111+ "userAgent" : " Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122 .0.0.0 Safari/537.36 Edg/122 .0.0.0"
112112}
You can’t perform that action at this time.
0 commit comments