Code: Select all
http://www.test.com/download/1/text
...
http://www.test.com/download/520/textUsing this script (thanks again, Stefan!), I was able to accomplish the same, without any kind of intervention other than setting initial parameters for the script (and a little search and replace at the end of the process). As follows:
1) Copy the ending URL into a visible .txt, for refer;
2) Chose an empty folder and activate the mentioned script;
3) Chose either to create as folders (leave Option 1 checked/default) or files (tick Option 2). *NOTICE*: In a task, I had to create +4000 of such entries and experimentally started with FOLDERS - the whole process slowed down severely after the first ~800 folders and I opened another XY instance and regularly selected all from the source folder and moved them into another temp directory, creating groups of ~1000 files/max; side notice: if you click on the opposite panel, the script will continue to create folders in it, so you must set the original pane as active again and on task completion you'll need to gather those stranded folders together; also, keep an eye on the bug described here (beta 9.40.0000/0001 at least, regarding drag'n'drop into highlighted folders on the opposite pane); creating FILES may be a bit more comfortable, but haven't properly tested it yet;
4) Split the initial URL as follows:
-Option 5: http-www.test.com_download_
-Option 6: 1
-Option 7: 520
-Option 8: _text
5) Click on "Do it", confirm with OK and enjoy the show; keep in mind the notice on item 3;
6) After sorting stuff together (if you had to split them apart), select all files/folders and copy their names into clipboard (default CTRL+SHIFT+P or File > To Clipboard > Item Name(s);
7) Open Wordpad (or your favorite text editor) and paste (CTRL+V) the info into it;
8) Do a little search and replace with "- >> ://" and "_ >> /", so the final output will be the 520 URLs you wanted.
If someone knows about a text editor able to accomplish this task in an easier manner, please leave a notice. I've tried several of them but none regarding this old query, and recently had to deal with this job again - but went into this solution as this was the first idea that came to mind.
XYplorer Beta Club