Generate URL list
This python script generates a file with a list of URLs printed in sequence. There have been some instances where I wanted to download files (generally pdf and html) printed in sequence, and there was no direct download link. I created this script to help with the process of downloading the files using wget, a free command line web downloader.
What you will need:
Note: You may wish to download the archive below if you do not have any python experience, or do not wish to download python.
Here is the python script: Genlist.txt (rename the extension from .txt to .py)
Please note that you can also download the compiled binary in the Genlist Archive (simply extract and run from the command prompt.)
If you have downloaded the Archive, be sure to place all the files in the same directory. And run the application, here is an example below:
> genlist -u http://www.somewebsite.com/faq -x html -z 4 -r 19 38
-u: Should be followed by the URL, with a partial filename is there is one.
-x: Should be followed by the extension to be used (without the . (dot)).
-z: This denotes the number of zeros placeholders.
-r: Should be followed by two numbers separated with a space, to indicate the range.
This will generate the following output:
URLstr : http://www.somewebsite.com/faq
EXTstr : html
ZEROint : 4
RANGEint1 : 19
RANGEint2 : 39
file 'dlist' has been created.
Note that it also creates a file called
dlist, with the output content, easier to rename to .bat and run it as a script file to download all the files in the current directory.
Reserved, going to add something here later.