19 أسطر
506 B
JavaScript
19 أسطر
506 B
JavaScript
const { getRandomProxy } = require('./proxies');
|
|
|
|
|
|
// قائمة proxies مجانية (يجب تحديثها بانتظام)
|
|
const freeProxies = [
|
|
'103.149.162.194:80',
|
|
'45.7.64.106:999',
|
|
'167.71.5.83:3128',
|
|
'138.68.60.8:3128',
|
|
'167.99.131.11:80',
|
|
// إضافة المزيد من الـ proxies هنا
|
|
];
|
|
|
|
// دالة للحصول على proxy عشوائي
|
|
function getRandomProxy() {
|
|
return freeProxies[Math.floor(Math.random() * freeProxies.length)];
|
|
}
|
|
|
|
module.exports = { getRandomProxy }; |