A scraper for Channel Myanmar movies
Project description
Channel Myanmar Scraper
This is a command-line tool for scraping movie information from Channel Myanmar and saving links to Yoteshin.
Installation
You can install this package using pip:
pip install cm-scraper
Usage
After installation, you can use the scraper from the command line. Here are some usage examples:
- Scrape a single page:
cm --page 5 --token your_authentication_token_here
This will scrape page 5.
- Scrape a range of pages:
cm --page-range 1 5 --token your_authentication_token_here
This will scrape pages 1 through 5.
- Specify a custom delay between requests:
cm --page-range 1 5 --token your_authentication_token_here --delay 2
This will scrape pages 1 through 5 with a 2-second delay between requests.
- Specify preferred video quality:
cm --page 1 --token your_authentication_token_here --quality 1080p
This will scrape page 1, preferring 1080p quality links when available.
- Default behavior (scrape only page 1 with 720p quality preference):
cm --token your_authentication_token_here
This will scrape only page 1 with the default 1-second delay and 720p quality preference.
Command-line Options
--page PAGE: Scrape a single specified page.--page-range START END: Specify the range of pages to scrape. For example,--page-range 10 40will scrape pages 10 through 40.--token TOKEN: Your authentication token (required).--delay SECONDS: Time delay between requests in seconds (default: 1).--quality QUALITY: Preferred video quality. Choose either '720p' or '1080p' (default: 720p).
Note: You can use either --page or --page-range, but not both at the same time.
For more information, use the --help option:
cm --help
Quality Selection
The scraper now supports selecting preferred video quality:
- If
--quality 720pis specified (or by default), the scraper will prioritize 720p links. If a 720p link is not available, it will fall back to 1080p. - If
--quality 1080pis specified, the scraper will prioritize 1080p links. If a 1080p link is not available, it will fall back to 720p. - If neither quality is available, the scraper will use whatever quality is available.
Note
Please use this tool responsibly and in accordance with the terms of service of the websites being scraped.
License
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 cm_scraper-0.1.2.tar.gz.
File metadata
- Download URL: cm_scraper-0.1.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a1d3ef14886b38a1998999ba8ad286b8b7c24d0d494bf477244f383b4e5600b
|
|
| MD5 |
61d088d6e300cdc71045a77a7a4d2d66
|
|
| BLAKE2b-256 |
873cc8c2aa30351358bb8d6efe3c4c29cea3a225dcfabf82b35dff4031aeef83
|
File details
Details for the file cm_scraper-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cm_scraper-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8a2aee72fde195a4ff56b2f41f99ed54b52b3849c28ea6d8bb4a6ca484fb740
|
|
| MD5 |
76bce850a3937e2374df75ae89a7e7ae
|
|
| BLAKE2b-256 |
4c03381f054f01d1241f29eba19d556319c00872d783694571c19899af06df67
|