import java.net.*;
import java.io.*;
public class Scrape {
public static void main(String[] args) {
try {
String url = "https://api.scraperapi.com/?api_key=6273d0546b0292252337ad2bac9e24e5&url=https://www.amazon.com/&binary_target=true&autoparse=true";
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
conection.setRequestMethod("GET");
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
response.append(readLine);
}
in.close();
System.out.println(response.toString());
} else {
throw new Exception("Error in API Call");
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
my discord for more info such as scripts and ai that creates malwares such as wormgpt for free on here discord server for free ccs and services such as u can sell your services here
import java.io.*;
public class Scrape {
public static void main(String[] args) {
try {
String url = "https://api.scraperapi.com/?api_key=6273d0546b0292252337ad2bac9e24e5&url=https://www.amazon.com/&binary_target=true&autoparse=true";
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
conection.setRequestMethod("GET");
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
response.append(readLine);
}
in.close();
System.out.println(response.toString());
} else {
throw new Exception("Error in API Call");
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
my discord for more info such as scripts and ai that creates malwares such as wormgpt for free on here discord server for free ccs and services such as u can sell your services here