skywrite / sky-tumblr-export

Export your Tumblr blog into Markdown. Use it with Sky if you like.
MIT License
59 stars 10 forks source link

[feature request] Download images and include local, relative paths #7

Closed cmchap closed 5 years ago

cmchap commented 10 years ago

I'd like to the images hosted on tumblr to be downloaded, renamed according to the post title, and the image src references as local, relative paths. So instead of images in the resulting markdown looking like

![](http://31.media.tumblr.com/f850a2e3e3673ef05e7769de3447e7d0/tumblr_n5biijSe9E1qzn9gxo1_1280.png)

we'd have

![](./2010/02/images/entrepreneurial-heroes-1.png)

with the following file structure:

├── 2010
│   ├── 02
│   │   ├── entrepreneurial-heroes.md
│   │   ├── inspiration-perishable.md
│   │   ├── meeting-deadlines.md
│   │   ├── images
│   │   │   ├── entrepreneurial-heroes-1.png
│   │   │   ├── inspiration-perishable-1.png
│   │   │   ├── inspiration-perishable-2.png
│   │   │   └── meeting-deadlines-1.png
│   ├── 03
│   │   ├── 2-apps-are-better-than-1.md
│   │   ├── iphone-company-struggle-1.md
│   │   ├── iphone-company-struggle-2.md
│   │   ├── its-all-our-fault-why-building-a-business-on-the.md
│   │   ├──  social-media-not-about-you.md
│   │   ├── images
│   │   │   ├── 2-apps-are-better-than-1-1.png
│   │   │   ├── iphone-company-struggle-1-1.png
│   │   │   ├── iphone-company-struggle-1-2.png
│   │   │   ├── iphone-company-struggle-2-1.png
│   │   │   ├── its-all-our-fault-why-building-a-business-on-the-1.png
│   │   │   └── social-media-not-about-you-1.png
└── sky
    └── config.json
jprichardson commented 10 years ago

This would be awesome. It wouldn't be too difficult if someone wanted to add this.