Is it possible to open a web page at a certain point, ideally a line number, or at a point identified with an Xpath query (not an anchor) using either R or python to open a url within a browser, for example.
webbrowser.open(url)
shell.exec(url)
Will it depend on the browser used, or need to be controlled by the browser rather than the script used to open it?
The idea is to search for a term within a web page and have the page open at the specific line containing the search term, instead of just opening the url.
You could get fancy with the HTML, first by finding the link you want on the page, then creating a new element with a specific ID you name, and then tell the browser to load that edited page.
and then you change the
p‘sidtoid="scrollhere"and then tell your browser to load
www.example.com/#scrollhere. The trick would be getting the edited page to the browser.