A Facebook video information scraper by Kehem IT
Project description
Facebook Video Scraper by Kehem IT
A Python package to scrape video information from Facebook.
Installation
Install the package from PyPI:
pip install fb-video
Usage
Run the scraper from the command line:
from fb_video import FBVideoScraper
scraper = FBVideoScraper()
info = scraper.get_video_info("https://www.facebook.com/video_url")
print(info)
Or use it in Python:
from facebook_scraper import FacebookVideoScraper
scraper = FacebookVideoScraper()
info = scraper.get_video_info("https://www.facebook.com/watch/?v=971981951549911")
print(info.to_dict())
LICENSE
No change needed here. Use the MIT license (or your preferred license) as before.
pyproject.toml
Update the name field to fb_video:
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "fb_video" # Updated package name
version = "0.1.0"
authors = [
{ name = "Kehem IT", email = "support@kehem.com" },
]
description = "A Python package to scrape video information from Facebook URLs"
readme = "README.md"
requires-python = ">=3.7"
dependencies = [
"requests>=2.28.0",
]
license = { file = "LICENSE" }
keywords = ["facebook", "video", "scraper"]
[project.urls]
"Homepage" = "https://github.com/yourusername/fb_video"
"Source" = "https://github.com/yourusername/fb_video"
[project.scripts]
fb-video = "fb_video.scraper:main" # CLI command (fb-video)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fb_video-0.1.2.tar.gz.
File metadata
- Download URL: fb_video-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfe9535f8f46e3c9e67fda2954af070933196c33c238f8b6f906aa61ad25910d
|
|
| MD5 |
bc6ce578bb61c39ae521d1e3ba8ab0b5
|
|
| BLAKE2b-256 |
5c4b8d7944949f37efd92a2620fdb42e9c4f5d1db295059d3f05f069f65b3926
|
File details
Details for the file fb_video-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fb_video-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4be20663bada28201413212a3f1bd41bf5567f9d2443f472956e0837eee8e0db
|
|
| MD5 |
8ba3b8ef0669645f559c422f25f5ecb7
|
|
| BLAKE2b-256 |
c339682439d96876965cea206e24ef95b0fde336b4a4d77ed6452044abeb7cfc
|