Class RedditVideoDownloader

java.lang.Object
io.github.yvasyliev.forwarder.telegram.reddit.service.RedditVideoDownloader

public class RedditVideoDownloader extends Object
Service for downloading videos from Reddit post.
  • Constructor Details

    • RedditVideoDownloader

      public RedditVideoDownloader(URI apiUri, String userAgent, String cssSelector)
  • Method Details

    • getVideoDownloadUrl

      public URL getVideoDownloadUrl(Link post) throws IOException
      Downloads the video from the given Reddit post.
      Parameters:
      post - the Reddit post containing the video
      Returns:
      the URL of the downloaded video
      Throws:
      IOException - if an error occurs while downloading the video