How do I write xpath to remove text from page title when grabbing page title as the file name?

139 views
Skip to first unread message

Jadian Radiator

unread,
Mar 30, 2023, 6:28:08 PM3/30/23
to Video DownloadHelper Q&A
How do I write xpath to remove text from page title when grabbing page title as the file name?
I'm asking because 9anime.to doesn't have the video titles conveniently in the page contents.

mjs

unread,
Apr 1, 2023, 2:05:55 AM4/1/23
to Video DownloadHelper Q&A
Instead of a quick download click to the right of the hit in the menu , there is a button that looks like this:    •••  ▶
Click that to open another menu then click Download. Then you can make the file name what you want before downloading.
This should be what you're after but not sure what xpath is. Perhaps Mig the developer can respond on that.
--
A vdh user

Wild Willy

unread,
Apr 1, 2023, 11:55:48 PM4/1/23
to Video DownloadHelper Q&A
XPath is some fancy feature that I completely do not understand.  I gather it can automatically do cute things with the file names VDH proposes for downloading files.  It's not entirely something Michel thought up.  I believe it's actually a separate software package.  But since I don't understand it, I obviously have never used it.  My comments here are based on posts from other users that I've read here.  Uncomprehendingly, I must add.  So I might have some of this wrong.  Search the forum for "xpath" & you'll get an idea of what it's all about.  I believe you will not get many hits.  It seems rather esoteric.

JCF

unread,
Apr 7, 2023, 6:05:46 AM4/7/23
to Video DownloadHelper Q&A
Hi Jadian,
Mig explained me a few things about this advanced feature.
If you want to grab a string located somewhere on the page, a good way to start is to :
- select it
- right click on it to get a VDH sub menu to open the "Smart naming rules" dialog box

2023-04-07_11-55.png

You will get the chosen string and if you click on "Advanced" check box, you'll get the full xpath.
You can use regular expressions (more advanced....) and add a delay if needed before the xpath search is done in the page.

2023-04-07_11-56.png

jerome
Reply all
Reply to author
Forward
0 new messages