HTML Selector

garhurdjung

New member
Mar 12, 2017
9
0
0
I want to make a Tool. Where I will include an URL and some of HTML selector will be set so that I can grab it. How could I do it? Is it possible by Javascript or Java? If you have any readymade source for that please share with me. Thanks in advance!
 


Can you please advise me what to do? I'm waiting for someone who has a solution for me.

I want to make a Tool. Where I will include an URL and some of HTML selector will be set so that I can grab it. How could I do it? Is it possible by Javascript or Java? If you have any readymade source for that please share with me. Thanks in advance!
 
A sector contains immediately followed by the id value. Id selectors have a higher precedence than attributes selector. A simple selector is either a type selector or universal selector followed immediately by zero or more attribute selectors, id selectors, in any order. The simple selectors matches if all of its components match.
 
First you need to understand what you want to do.
Selectors can be in 3 different ways:
1.- CSS Selector
2.- XPath
3.- Regular Expressions

I would recomend downloading a chrome extension for Xpath, I like it the most.

You can set in HTML an id="anything" that way you know if you call for a CSS selector for id anything you will get the text or the href from that HTML tag.

You have to study more
CSS Selectors Reference
XPath Tutorial
 
Actually i can't get the main point of what you mean, can you elaborate the exact thing you wan't?