Advertisement
dereksir

Untitled

Mar 13th, 2023
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // Function to make a request using Axios with a rotating proxy
  2. const makeRequest = async () => {
  3. try {
  4. const response = await axios.get('https://example.com', {
  5. proxy: rotateProxy(),
  6. timeout: 10000,
  7. });
  8. console.log(response.data);
  9. } catch (error) {
  10. console.error(error);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement