Skip to main content

A package to scrape BitChute platform recommendations using Selenium.

Project description

DOI

Bitchute Scraper

Python scraper for the Bitchute video platform. It allows you to query for videos and to retrieve platform recommendations such as trending videos, popular videos or trending tags. It makes use of Selenium for retrieving data.

Installation

bitchute-scraper is available on PyPi:

$ pip3 install bitchute-scraper

Alternatively you can download the repository and install the package by running the setup.py install routine. Make sure to install the requirements as well:

$ pip3 install -r requirements.txt
$ python3 setup.py install

Additionally this package requires Google Chrome and chromedriver to be installed on your system. Make sure that they are available.

brew install --cask google-chrome
brew  install chromedriver

In addition to the python package the scraper makes use of the selenium chromedriver which is an application that programmatically controls the Google Chrome browser. While the package uses the webdriver-manager to ensure that the proper webdriver is installed on your system you need to make sure that Google Chrome is installed. On macOS you can install both easily with homebrew:

brew install --cask google-chrome

On Linux and Windows installing Google Chrome should be straight forward as well. In case you don't know how to do this, just query it with the search engine of your trust!

Usage

Create a crawler object and download the trending videos.

import bitchute as bc
b = bc.Crawler()        
trending_videos = b.get_trending_videos()

Besides videos the trending page lists tags that can be retrieved with.

trending_tags = b.get_trending_tags()

In case you want to retrieve both trending videos and trending tags at once, you can call.

trending_videos, trending_tags = b.get_trending()

You can also retrieve videos listed in popular and all from the homepage as well.

popular_videos = b.get_popular_videos()
all_videos = b.get_all_videos()

Recommended channels can be retrieved via.

recommended_channels = b.get_recommended_channels(extended=False)

Retrieve channel information containing both the channel about as well as the videos published by the channel.

about, videos = b.get_channels(channel_ids, get_channel_about=True, get_channel_videos=True)

Search Videos (sorted by relevance only).

videos = search(query, top=100)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitchute-scraper-0.1.7.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

bitchute_scraper-0.1.7-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file bitchute-scraper-0.1.7.tar.gz.

File metadata

  • Download URL: bitchute-scraper-0.1.7.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for bitchute-scraper-0.1.7.tar.gz
Algorithm Hash digest
SHA256 183b5f7da624f133064f601197e1de6074ed78f74f88f9ed4a48463d1ce45f4e
MD5 fbf2521d2280030e5b2c2a8d8d59a0cf
BLAKE2b-256 eb20c5ef98fe03935327d004fa8efa4eff2a46c3743079328704dea8e934fbcf

See more details on using hashes here.

File details

Details for the file bitchute_scraper-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for bitchute_scraper-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ef89ca90d1bc15735be078aed9a946b552f196a28fa8fcfaf82604fdb9f25a84
MD5 4b24bc9c7b0c9747d5a968f73137ccc1
BLAKE2b-256 962eb4c48995b9c510684bccfe35c71ef6e904309266655f760a5d4192daa2e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page