Repository: youtube-dl
Issue: wykop.pl support
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2020.05.08. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2020.05.08**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Link (youtube.com): https://www.wykop.pl/link/5515619/prof-obirek-o-pedofilii-wsrod-duchownych-jan-pawel-2-wiedzial-i-nic-nie-zrobil/
- Link (youtube.com): https://www.wykop.pl/link/5515619/
- Link comment (youtube.com): https://www.wykop.pl/link/5504073/#comment-77196337
- Link comment (youtube.com): https://www.wykop.pl/link/5504073/comment/77196337/#comment-77196337
- Entry (youtu.be): https://www.wykop.pl/wpis/49583479/o-hui-xd-sosnierz-konfederacja-hot16challenge2-kor/
- Entry (gfycat.com): https://www.wykop.pl/wpis/49579089/kiedy-skryptujesz-zaczynajac-tablice-od-1-programo/
- Entry (wykop.pl gif): https://www.wykop.pl/wpis/49585319/
- [NSFW] Entry (wykop.pl gif, note the nsfw lock for unlogged users): https://www.wykop.pl/wpis/49586527/
- Entry comment (youtube.com): https://www.wykop.pl/wpis/49583499/#comment-175441409
- Entry comment (youtube.com): https://www.wykop.pl/wpis/49583499/dzien-dobry-serdecznie-chcialbym-dzis-zaprezentowa/#comment-175441409

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

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