ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.01k stars 10.01k forks source link

wykop.pl support #25362

Open selfisekai opened 4 years ago

selfisekai commented 4 years ago

Checklist

Example URLs

Description

The portal is has 2 types of content: links (znaleziska; digg/reddit-like) and microblog (well, microblog). They are completely separate entities. It doesn't provide any videos itself (users only can upload photos, including animated .gif), but it allows users to embed medias (mostly videos) from external services like youtube, streamable, gfycat, coub, soundcloud, instagram, which are already supported by youtube-dl. The only content availability limitaton is a requirement to log in (with any account) to see nsfw content on the web version.

There is a JSON REST API available, pretty simple to use: Official documentation index of request endpoints: https://www.wykop.pl/dla-programistow/apiv2docs/ Example URLs (made out of the ones above): https://a2.wykop.pl/links/link/5515619/appkey/aNd401dAPp https://a2.wykop.pl/links/comment/77196337/appkey/aNd401dAPp https://a2.wykop.pl/entries/entry/49583479/appkey/aNd401dAPp https://a2.wykop.pl/entries/entry/49579089/appkey/aNd401dAPp https://a2.wykop.pl/entries/entry/49585319/appkey/aNd401dAPp (note that you need to replace .jpg with .gif manually if embed.animated === true) [NSFW] https://a2.wykop.pl/entries/entry/49586527/appkey/aNd401dAPp (note there is no nsfw lock for unlogged users) https://a2.wykop.pl/entries/comment/175441409/appkey/aNd401dAPp

selfisekai commented 3 years ago

Done in https://haruhi.download, a libre fork of youtube-dl.