package net.Broken.Commandes.Over18; import net.Broken.Commandes.NumberedCommande; import org.apache.logging.log4j.LogManager; /** * Created by seb65 on 07/11/2016. */ public class Pipe extends NumberedCommande { public Pipe() { super(LogManager.getLogger(), "http://feelation.com/"); } /* System.out.println("ok"); String pipeLine=null; URL pipeURL = new URL(redirect.get("http://feelation.com/random")); URLConnection cc = pipeURL.openConnection(); BufferedReader in = new BufferedReader(new InputStreamReader(cc.getInputStream(), "UTF-8")); String inputLine; while ((inputLine = in.readLine()) != null) { System.out.println(inputLine); if(inputLine.contains("class=\"post photo\"")) { String[] splited = inputLine.split("<"); for(String aString:splited) { if(aString.startsWith("