web-content

How to get a web page's source code from Java [duplicate]

南楼画角 提交于 2019-11-27 12:55:30
This question already has an answer here: How do you Programmatically Download a Webpage in Java 10 answers I just want to retrieve any web page's source code from Java. I found lots of solutions so far, but I couldn't find any code that works for all the links below: http://www.cumhuriyet.com.tr?hn=298710 http://www.fotomac.com.tr/Yazarlar/Olcay%20%C3%87ak%C4%B1r/2011/11/23/hesap-makinesi http://www.sabah.com.tr/Gundem/2011/12/23/basbakan-konferansta-konusuyor# The main problem for me is that some codes retrieve web page source code, but with missing ones. For example the code below does not

How to get a web page's source code from Java [duplicate]

旧时模样 提交于 2019-11-26 18:14:27
问题 This question already has answers here : How do you Programmatically Download a Webpage in Java (10 answers) Closed 4 years ago . I just want to retrieve any web page's source code from Java. I found lots of solutions so far, but I couldn't find any code that works for all the links below: http://www.cumhuriyet.com.tr?hn=298710 http://www.fotomac.com.tr/Yazarlar/Olcay%20%C3%87ak%C4%B1r/2011/11/23/hesap-makinesi http://www.sabah.com.tr/Gundem/2011/12/23/basbakan-konferansta-konusuyor# The main