A package to scrape BitChute platform recommendations using Selenium.
Project description
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
Usage
Create a crawler object and download it the trending videos and tags.
import bitchute as bc
b = bc.Crawler()
recommended_videos, tags = b.get_recommended_videos(type='trending')
You can also retrieve videos listed in popular
and all
from the homepage as well. These request currently return a list of videos as well as a list of tags. The latter is an artifact of the current implementation and is to be ignored. (Will be fixed later.)
recommended_videos, tags = b.get_recommended_videos(type='popular')
recommended_videos, tags = b.get_recommended_videos(type='all')
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bitchute-scraper-0.1.5.tar.gz
.
File metadata
- Download URL: bitchute-scraper-0.1.5.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50654023ce51434e0162d6d2ec75f2668bbdee98e98409965c3200efd98d392d |
|
MD5 | 0e58bce63a0e0f29f4ebdbd4b6e77418 |
|
BLAKE2b-256 | 2c3600258e3358ca1f7a1ed510d6c97a2c20d80c09e0bb983b18a88e7f72020a |
File details
Details for the file bitchute_scraper-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: bitchute_scraper-0.1.5-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe82831d077a68919405326eb5d886b978976576fa2357217e6ff86a4aebdb1b |
|
MD5 | 7cd545ed55e022d644df39e19fcb9138 |
|
BLAKE2b-256 | ed939ae6111b0bf2eb1eda00727d4d4924f8b00dc358e90e358a7adc40b8b9fa |