npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bitchute-dl

v0.0.3

Published

Get videos from BitChute easily

Downloads

5

Readme

Bitchute Downloader

This packages is focused on creating a wrapper over the BitChute site. Because the website doesn't have a API, the majority of the functions use HTML scrapping or XHR requests that are detected when videos are searched or selected.

API

isBitchuteLink(possibleLink) : bool

Checks if a possible value is a valid URL and it's from bitchute domain

Paramameters:

  • possibleLink: String: Value containing a possible BitChute URL

fetchCookies() : Promise<CookieMap>

To correctly connecto to BitChute, it's needed to request to contains some cookies. So, this function will fetch these values. You can pass it to other functions to prevent they to fetch cookies internally.

searchVideo (topic, duration, sorting, cookies) : Promise<IVideoInfo[]>

List Bitchute videos based on search criteria. Currently, only the first page data is fetch.

Parameters:

  • topic: String - The topic that you want to query
  • duration: String - Video duration category. Possible values are:
    • "any" - Do not restrict
    • "short" - Videos between 0 and 5 minutes
    • "medium" - Videos between 5 and 20 minutes
    • "long" - Videos longer than 20 minutes
    • "feature" - Videos longer than 45 minutes
  • sorting: String - Video sorting setting. Possible values are:
    • "relevance" - Use higher relevance sorting (Default)
    • "newest" - Sort newest videos first
    • "oldest" - Sort oldest videos first
  • cookies: CookieMap - Cookies fetched from fetchCookies

getVideoPrivateLink(publicPath, cookies): Promise<String>

When acessing BitChute video pages, the URL is formed by its domain and a path (e.g /video/QBoDWtj3e8wi/ is the path part). With this data, we can fetch the private link for the video, i.e, the link for the video file on a content web server.

Parameters:

  • publicPath: String - The public path of the target video
  • cookies: CookieMap - Cookies fetched from fetchCookies

getVideoStream(privateLink) : Promise<Readable>

With the private link of a video, we can access the file as a binary data, creating a download stream from the remote data.

Parameters:

  • privateLink: String - The private link of a Bitchute video. (Usually achieved with the getVideoPrivateLink function)