bulk-downloader-for-reddit icon indicating copy to clipboard operation
bulk-downloader-for-reddit copied to clipboard

[FEATURE] Make available as a module

Open batmanscode opened this issue 1 year ago • 4 comments

  • [x] I am requesting a feature.
  • [x] I am running the latest version of BDfR
  • [x] I have read the Opening an issue

Description

It'll be easier to build on top of this wonderful library if it could be accessed as a module 😃

Example

import bdfr

path = download(output_folder='', link='')

batmanscode avatar Sep 12 '22 10:09 batmanscode

It can be, but we don't have any API documentation. You'd have to look through the codebase to understand it though. To do what you want, you want to make a Configuration object, then build a RedditConnector or Downloader instance.

Serene-Arc avatar Sep 12 '22 11:09 Serene-Arc

It can be, but we don't have any API documentation. You'd have to look through the codebase to understand it though. To do what you want, you want to make a Configuration object, then build a RedditConnector or Downloader instance.

Nice, thanks for helping me get started! 🙂

Alright let me try to figure this out

batmanscode avatar Sep 12 '22 13:09 batmanscode

Good luck. The SiteDownloader modules can also be used independently and have a common interface. I've done my best to make the code flow relatively simple so hopefully you don't have too much trouble.

Serene-Arc avatar Sep 13 '22 00:09 Serene-Arc

Thank you @Serene-Arc 😃

I'll come back here if I have any questions/issues. Maybe things can be documented here as we go along? And eventually turn into a PR

In the mean time, please do share tips like SiteDownloader whenever you remember them 😆

batmanscode avatar Sep 14 '22 06:09 batmanscode