Identify Xpath expressions in a given document
Project description
xpath-identifier
Given an html or similar input xpath-identifier returns the xpath of it's location in the input
Usuage
from xpath_identifier import search_html test_html = open("src/tests/fixtures/test_html.html").read() xpaths = search_html(html_fixture, "Send them a gift tracking link") print(xpaths)
["/html/head/script[2]"]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xpath_identifier-0.0.6.tar.gz
(28.7 kB
view hashes)
Built Distribution
Close
Hashes for xpath_identifier-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce0273885a0ad96eee546a45fde67d87fecbbb03d4b1c30eed8fa333b66732af |
|
MD5 | cbeb79421d110694865d36f2c2b13480 |
|
BLAKE2b-256 | ff7110bd6fd1999b6353350127bf8be4422c3a77deaff7b98ff981211e682136 |