Node.JS: Simple GET with axios module throwing “Error: Max redirects exceeded”
问题 Was trying to understand the basics of Web Scraping & was successful doing it with Python. When trying to emulate the same with Node getting following error : UnhandledPromiseRejectionWarning: Error: Max redirects exceeded. Below is simple code snippet that am trying to run using node scrape.js : const axios = require('axios'); const url = 'https://www.somewebsite.com/auth/get_menu/?city_id=1'; const headers = { 'accept': '*/*', 'content-type': 'application/json', 'app_client': 'consumer_web'