Step 2: check if the site in question hasn't already a public webservice available which is much more easy to use than parsing a whole HTML page. When you parse using a filter, you will get a list of Nodes that you can do a instanceof operation on them to determine if they are of the type you are interested in, for span you'd do something like. You first have to know in what tags divmetaspanetc the information you want are in, and know the attributes to identify those tags.Įxample. Please help me to explain why is this happening A web service with a stable API is much better, but sometimes we just do not have one. There are some tags which are missed out and the attributes and text body of them are also missed out. The code below is not able to get the entire set of tags in the page. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |