Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function sendGetRequestWithProxy(url){
- return new Promise(function(resolve, reject){
- require('request-promise') ( {
- url: url,
- rejectUnauthorized: false,
- //proxy: 'http://lum-customer-saulsanchez-zone-static-country-ie:geh3uaqbyld6@zproxy.lum-superproxy.io:22225',
- proxy: 'http://80.65.221.9:3128',
- //proxy: 'http://127.0.0.1:24001',
- headers: {
- 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
- //'Accept-Encoding': 'gzip, deflate, br',
- 'Accept-Language': 'en-US,en;q=0.9',
- 'Cache-Control': 'max-age=0',
- 'Connection': 'keep-alive',
- //'Cookie': 'aps03=lng=1&ct=197&cg=0&cst=0; pstk=D99A4ED593FB4D91AA2C3DC18BE1D957000003; Affiliates=Code=; __RequestVerificationToken_L0JldHNsaXA1=eSvQQXUQ5d0v04qwOQXg1rZi0ZJjsVZm3drNmE70NcJSIoYQa6KgAhRRm8b7AZ9pjml7fFDYgLIAD2WxGYxDyy5Vx4Y1',
- 'Host': 'www.bet365.com',
- 'Upgrade-Insecure-Requests': 1,
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3679.0 Safari/537.36'
- },
- }).then(
- function(data ){
- return resolve(data);
- },
- function(err){
- return reject(err);
- }
- );
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement