Is there a free software that joins many .html
files into one?
It should be on Windows and should strip only the headers.
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It only takes a minute to sign up.
Sign up to join this communityWith Cygwin you could use this Bash script:
#!/bin/bash
echo "Enter directory path pages:";
read html_path;
echo "Enter complete filename of the starting page:"
read start_page;
ls $html_path > "list.txt";
grep -iv "</body>" "$html_path/$start_page" | grep -iv "</html>" > "$html_path/all_merged.html";
for i in $(< list.txt)
do
grep -iv "<body>" "$html_path/$i" | grep -iv "<html>" | grep -iv "</body>" | grep -iv "</html>" >> "$html_path/all_merged.html"
done
echo "</body></html>" >> "$html_path/all_merged.html"
echo "Merged file ---> $html_path/all_merged.html"
unset html_path;
unset start_page;
unset i;
I found SoftSnow Merger which support what I need :
"Strip header/footer" option strips redundant style sheets, Javascript blocks, HEAD and HTML tags from the files.
Also VirusTotal doesn't found only one hit which seem to be a false positive.