No project description provided
Project description
Movie Download Automation
Movie Download Automation (movie_ls) is a Python package designed to scrape and aggregate movie links from various sources. It provides a simple interface to fetch movie streaming or download links programmatically.
Features
- Supports multiple sources (customizable)
- Clean and well-documented codebase
Installation
Install the latest version from PyPI using pip:
pip install movie_ls
Usage
Below is an example usage:
from movie_ls.driver import SeleniumDriver
from movie_ls.web_page_extractor import WebPageExtractor
from movie_ls.parsers.hdhub4u_html_parser import HdHub4uHtmlParser
from movie_ls.services.mediator_page import HbLinksFromMediatorPage
BRAVE_PATH = r"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
CHROME_DRIVER_PATH = r"drivers/chromedriver.exe"
def run_main():
print("--------------------- Get Movie Links Automation ---------------------")
download_query = input("Enter Movie/Web Series name : ")
driver = SeleniumDriver(browser_path=BRAVE_PATH, driver_path=CHROME_DRIVER_PATH).get_driver()
print("Extracting web page...")
extractor = WebPageExtractor(driver)
webpage_html = extractor.extract(f"https://hdhub4u.fail/?s={download_query.replace(' ', '%20')}")
print("webpage extracted")
print("Parsing webpage...")
media_links = HdHub4uHtmlParser.parse_media_links(webpage_html)
print(f"{len(media_links)} media links found")
for index, m in enumerate(media_links):
print(f"{index+1}. {m['caption']}")
print()
choice = int(input("Select a media link : "))
media_link = media_links[choice-1]['page_url']
print("Selected media link : ", media_link)
print("Extracting download links page...")
extractor = WebPageExtractor(driver)
pack_links = HdHub4uHtmlParser.parse_download_links(extractor.extract(media_link))
print(f"{len(pack_links)} packs found")
for index, d in enumerate(pack_links):
key, value = list(d.items())[0]
print(f"{index+1}. {key}")
print()
choice = int(input("Select a download link : "))
pack_link = list(pack_links[choice-1].items())[0][1]
print("Selected page link : ", pack_link)
print("Fetching all download link...")
hb_extractor = HbLinksFromMediatorPage(driver, pack_link)
download_links = hb_extractor.get_hubcloud_download_links()
if not download_links:
print("No mediator page found. We are still working for it.")
return
print(f"{len(download_links)} download links found")
for i, (text, href) in enumerate(download_links, 1):
print(f"{i}. {text}\n URL: {href}\n")
if __name__ == "__main__":
run_main()
Dependencies
beautifulsoup4selenium
All dependencies are automatically installed with pip install movie_ls.
Repository
Find the source code, issues, and contribution guidelines on GitHub:
Movie Download Automation
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License.
Note: This package is intended for educational and personal use. Please respect the terms of service of any websites you scrape.
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
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 movie_link_scrape-1.0.0.tar.gz.
File metadata
- Download URL: movie_link_scrape-1.0.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c33c5666c1a77540910bcd3b8e5d120fd857fd605c823c0d3686ed58310e314
|
|
| MD5 |
b87234661fc6261309321a3cee1f6545
|
|
| BLAKE2b-256 |
78a0f850f4cbbb7b7d0bc0c7615d10c49a66eef9fcb32e5fcef4358760bc7c38
|
File details
Details for the file movie_link_scrape-1.0.0-py3-none-any.whl.
File metadata
- Download URL: movie_link_scrape-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
643f309878dfe5ef0fc8328e68fc7ca2f911a6e46fe71e0d9298f86490e88689
|
|
| MD5 |
1bb3335f9b8899289bb45c333a182916
|
|
| BLAKE2b-256 |
f801b84dc11ce84c338fe01ae3892998e77043ec007eaef8197c5503b1059f5f
|