Aktywne Wpisy

Wezzore-04 +150
#famemma o #!$%@?

SzybkieSondy +309
Widzę, że niektórzy weszli na wyższy poziom odklejenia. "Propaganda dużo większa niż w TVP" - czy wy jesteście normalni? Przecież konfederacja do TVP w ogóle nie jest zapraszana. TVN daje im platformę i zaprasza do największego programu publicystycznego czyli Kawy na Ławę. "To są wolne media?" - tak k*rwa, to są wolne media. Wolne media nie polegają na tym, że ktoś karmi cię przekazem, który ci pasuje. Czy w tej partii są





Kod w komentarzu.
public static void main(String[] args) throws Exception {
URL farnell = new URL("http://pl.farnell.com/keithley/dmm6500/digital-multimeter-bench-6-5-digit/dp/2840447?ICID=I-HP-LB-keithley-dmm");
BufferedReader in = new BufferedReader(new InputStreamReader(farnell.openStream()));
System.out.println("!!!!");
StringBuilder websiteSource = new StringBuilder();
String tmp = null;
while ((tmp = in.readLine()) != null) {
websiteSource.append(tmp);
}
in.close();
Document doc = Jsoup.parse(websiteSource.toString());
Elements h1Elements = doc.getElementsByClass("h1");
for(Element e: h1Elements) {
System.out.println(e.text());
}
}
}
@Sidney1: tzn? Co się dzieje?
headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0'}r = requests.get('[http://pl.farnell.com/keithley/dmm6500/digital-multimeter-bench-6-5-digit/dp/2840447?ICID=I-HP-LB-keithley-dmm',headers=headers)](http://pl.farnell.com/keithley/dmm6500/digital-multimeter-bench-6-5-digit/dp/2840447?ICID=I-HP-LB-keithley-dmm',headers=headers))
public class Main {
public static void main(String[] args) throws Exception {
URL farnell = new URL("http://pl.farnell.com/keithley/dmm6500/digital-multimeter-bench-6-5-digit/dp/2840447?ICID=I-HP-LB-keithley-dmm");
org.jsoup.nodes.Document doc = Jsoup.parse(farnell, 14444);
org.jsoup.select.Elements h1Elements = doc.getElementsByTag("H1");
for (Element e : h1Elements) {
System.out.println(e.text());
}
}
}