Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sankakucomplex video #308

Closed
wankio opened this issue Jun 13, 2019 · 1 comment
Closed

sankakucomplex video #308

wankio opened this issue Jun 13, 2019 · 1 comment

Comments

@wankio
Copy link
Contributor

wankio commented Jun 13, 2019

https://www.sankakucomplex.com/2019/06/11/darling-ol-goddess-shows-off-her-plump-lower-area/

Some article have video attached and some have embed, so can it using youtube-dl to download these vids ? ty

@wankio
Copy link
Contributor Author

wankio commented Oct 4, 2020

def images(self, extr):
    num = 0
    imgs = []
    urls = set()
    orig = re.compile(r"-\d+x\d+\.")

    extr('<div class="entry-content">', '')
    while True:
        url = extr('type="video/mp4" src="', '"')
        if not url:
            return imgs
        if url in urls:
            continue
        if url[0] == "/":
            url = text.urljoin(self.root, url)
        url = orig.sub(".", url)
        num += 1
        imgs.append(text.nameext_from_url(url, {
            "url"   : url,
            "num"   : num,
        }))
        urls.add(url)

this will capture video but i dont know how to make it get all pics,gif,.... too

@mikf mikf closed this as completed in 98a4d86 Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants