Change user agent
This commit is contained in:
parent
70c68e3593
commit
da965f4324
|
|
@ -15,8 +15,8 @@ const COOKIES_PATH = path.join(__dirname, '../../cookies.txt');
|
||||||
// Common args to avoid 403 errors
|
// Common args to avoid 403 errors
|
||||||
const getCommonArgs = () => {
|
const getCommonArgs = () => {
|
||||||
const args = [
|
const args = [
|
||||||
'--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
|
'--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.7204.183 Safari/537.36',
|
||||||
'--referer', 'https://www.youtube.com/',
|
'--proxy', 'ny_premium:pJTg94JCukVjz2b@107.152.43.179:3128',
|
||||||
'--extractor-retries', '5',
|
'--extractor-retries', '5',
|
||||||
'--retries', '10'
|
'--retries', '10'
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue