Xealeph / Yiff.party-Image-Scraper

A simple Image Scraper for yiff.party profiles.
MIT License
10 stars 4 forks source link

adding youtube-dl? #23

Open AlphaSlayer1964 opened 3 years ago

AlphaSlayer1964 commented 3 years ago

I see you are unable to download the embeded vimio videos and I assume other external videos. If you include youtube-dl (might also need ffmpeg for some suff) as the video downloader you can easily has it download youtube videos or from other sights as long as they are on youtube-dl's list. It can also handle the embeded vimeo videos though I'm not sure how you would go about getting the "link". Here is a reddit post that shows who youtube-dl can download these embeded videos. I just tested it and it did work. https://www.reddit.com/r/youtubedl/comments/fzv58p/getting_some_embedded_vimeo_videos_from_a_webpage/ something to note when they tell you to filter urls that contain .json?base64_init=1 then copy it and relpace the text they just quoated wiuth .mpd they mean relace .json?base64_init=1 at the end on the link you just copied. Though I don't know how you would o about grabbing that link in the first place sadly. Hope this idea helps! Also aould be nice if we could set download location.

Xealeph commented 3 years ago

Hmm. I'm actually not too keen to add more features to this already bloated script plus me not having as much time as I did when I started this project. But I can see if there is a way (maybe as a separate script). Could you link me urls of yiff.party profiles which have embedded videos? This would help out a lot!

AlphaSlayer1964 commented 3 years ago

It's fine I completly understand that this was just a side thing. I might try my hand at makeing fork that adds that ability though I only know how to do basics web scraping. Here is some asmr video I managed to find https://yiff.party/vimeo/462801839

Xealeph commented 3 years ago

Thank you for the link! Also, if you want to fork this script, by all means, go for it! I really hope that you can do it, since the code is a mess and not really well documented. But if you try your hand at it, I can try to explain lines of code you have problems with.