oh shit lol space
This commit is contained in:
		@@ -6,7 +6,7 @@ FILENAME=${1}-${2}.json
 | 
				
			|||||||
while [ "$START_NUMBER" -le "$END_NUMBER" ];
 | 
					while [ "$START_NUMBER" -le "$END_NUMBER" ];
 | 
				
			||||||
do
 | 
					do
 | 
				
			||||||
  echo Scraping: $NUMBER # print
 | 
					  echo Scraping: $NUMBER # print
 | 
				
			||||||
  CONTENT=$(curl -sihttps://app-production.dhiraagu.com.mv/io/v1/info/subscribers/$NUMBER/dir > .tmpcache) # curl output with http headers and data
 | 
					  CONTENT=$(curl -si https://app-production.dhiraagu.com.mv/io/v1/info/subscribers/$NUMBER/dir > .tmpcache) # curl output with http headers and data
 | 
				
			||||||
  DATA=$(cat .tmpcache | tail -n1) # get the json data from last line
 | 
					  DATA=$(cat .tmpcache | tail -n1) # get the json data from last line
 | 
				
			||||||
  HTTP_STATUS=$(cat .tmpcache | head -n1 | awk '{print $2}') # get the http code from first line
 | 
					  HTTP_STATUS=$(cat .tmpcache | head -n1 | awk '{print $2}') # get the http code from first line
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user