Skip to content

Instantly share code, notes, and snippets.

@AnderRV

AnderRV/index.js Secret

Created August 30, 2021 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnderRV/752538465ae848d305429c0e676e7f46 to your computer and use it in GitHub Desktop.
Save AnderRV/752538465ae848d305429c0e676e7f46 to your computer and use it in GitHub Desktop.
const axios = require('axios');
const proxy = {
protocol: 'http',
host: '202.212.123.44', // Free proxy from the list
port: 80,
};
(async () => {
const { data } = await axios.get('https://httpbin.org/ip', { proxy });
console.log(data);
// { origin: '202.212.123.44' }
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment