# Save url path as folder path

**URL:** <https://forum.seocontentmachine.com/t/save-url-path-as-folder-path/520>\
**Category:** feature\
**Tags:** static-scraper, dynamic-scraper, done\
**Created:** [October 21, 2024, 7:15am UTC](https://forum.seocontentmachine.com/t/save-url-path-as-folder-path/520 "2024-10-21T07:15:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [October 21, 2024, 7:15am UTC](https://forum.seocontentmachine.com/t/save-url-path-as-folder-path/520/1 "2024-10-21T07:15:28Z")

</div>

## 1. The problem

I have a site with multiple pages that have the same name so I need a way that scrape the site and name the files not only with the url but the entire url including the subfolders

[Domain.com/folder1/page/](http://Domain.com/folder1/page/)  
[Domain.com/folder2/page/](http://Domain.com/folder2/page/)

## 2. Simple solution

Can you add another macro such as %fullurl%  
Or something similar so when I scrape the site will give me 2 files

folder1\_page.html  
folder2\_page.html

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [October 21, 2024, 8:03am UTC](https://forum.seocontentmachine.com/t/save-url-path-as-folder-path/520/2 "2024-10-21T08:03:09Z")

</div>

New macros

%file\_name%  
%path\_name%

Use together to create folders from url path name.

## static scraper

 ![image](https://forum.seocontentmachine.com/uploads/default/original/2X/d/ddf10085fa9c068944361aa04d67126910294156.png)

## dynamic scraper

 ![image](https://forum.seocontentmachine.com/uploads/default/original/2X/0/0192083861b107b2ab7246ea30666797febc7923.png)

%url% =\> renamed to %file\_name%  
%path% =\> renamed to %path\_name%

Dynamic scraper already had path support, but it has been added to static scraper now.
