Welcome To Crax Forum!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Advertisement

hackingwithbatssss

New member
Member
Joined
Jun 24, 2024
Messages
1
Credits
170
Points
5
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
 

Advertisement

Top