You can find any element via some selector. The only difference is the robustness of the solution. There is, however, no fully robust solution as everything (the DOM hierachy, the CSS classes, and the used IDs) may be changed from the site owner.
Just open your dev tools, click in the elements tab on some DOM node and select "copy selector".
You can find any element via some selector. The only difference is the robustness of the solution. There is, however, no fully robust solution as everything (the DOM hierachy, the CSS classes, and the used IDs) may be changed from the site owner.
Just open your dev tools, click in the elements tab on some DOM node and select "copy selector".
I have been seeing "Xpath" everywhere. Can it not be used as an absolute path? I am interested in web scraping.
P.S - Great article
You can use css as selector for the target html elements but i advice you to use xml in web scraping it have alot of advantages