Flatten file structure for html based website

Job ID: 36046587

Budget: $30 – $250 USD

I have a website with a nested structure that I need converted to a flattened structure. There might be relative links in it, so an automated method using python or similar would be preferred. Also need validation of functional website after conversion. Will provide entire site as a zip file, and expect to receive it the same way.
Related categories: PHP JavaScript Python Django HTML