Perform A Search Using Jsoup
Since the Soundcloud Java API is discontinued, I want to perform a search on their site using JSoup. I am currently using this code: Document doc = Jsoup .connect('http
Solution 1:
You can try the below snippet. User agent string taken from this thread.
Document doc = Jsoup
.connect("https://soundcloud.com/search?q=deep%20house")
.userAgent("Mozilla/5.0 (Linux; Android 4.1.1; Nexus 7 Build/JRO03D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19")
.timeout(5000).get();
System.out.println(doc);
Post a Comment for "Perform A Search Using Jsoup"