M-rcus / yiff-dl

Downloads files from creators on Yiff
https://m-rcus.github.io/yiff-dl/
MIT License
24 stars 3 forks source link

Save basic embed metadata and URLs to files #8

Closed M-rcus closed 4 years ago

M-rcus commented 4 years ago

Embedded metadata and URLs will be saved into _embed_body.html and _embed_urls.txt specifically in the post folder.

_embed_body.html is just a direct HTML-string dump of the "Embed media" section of the post (if one exists).

The <iframe> that seems to show up when inspecting the post on Yiff doesn't seem to be included though, but I've decided that for now it's not a huge concern.

_embed_urls.txt contains the URLs that have been found in the embedded metadata. It basically looks for any <a> tags (links) and throws them into the file.

So far I've only been able to test with creators that use Vimeo embeds. I want to test with creators that use other embed providers (such as YouTube) before merging.

Closes #7