Holyshit it's hard.
Anyone have any tips?
The most I've gotten to is being able to parse the HTML for all of the input field's names and values, but how can I grab them one by one?
My current code:
ThanksCode:import org.jsoup.Jsoup; import org.jsoup.helper.Validate; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import java.io.IOException; class JSoupTest { public static void main(String[] args) throws IOException { Document doc = Jsoup.connect("http://gaiaonline.com/auth").get(); Elements inputs = doc.select("sid|input"); for(Element input : inputs) { System.out.println(input.attr("name")); System.out.println(input.attr("value")); } } }
Results 1 to 20 of 20
Threaded View
- 12 Dec. 2012 01:26pm #1
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 1442.00
Grabbing values in HTML using a programming languge is harder than I imagined