naaleh
NaalehExtractor
Bases: Extractor
Extract audio content from Naaleh.com.
This extractor handles URLs from naaleh.com and extracts audio download links using the JWPlayer media key along with their titles.
Source code in src/torah_dl/core/extractors/naaleh.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|
url_patterns
property
url_patterns: list[Pattern[str]]
Return the URL pattern(s) that this extractor can handle.
Returns:
Type | Description |
---|---|
list[Pattern[str]]
|
List[Pattern]: List of compiled regex patterns matching Naaleh.com URLs |
extract
extract(url: str) -> Extraction
Extract download URL and title from a Naaleh.com page.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
str
|
The Naaleh.com URL to extract from |
required |
Returns:
Name | Type | Description |
---|---|---|
Extraction |
Extraction
|
Object containing the download URL and title |
Raises:
Type | Description |
---|---|
NetworkError
|
If there are network-related issues |
DownloadURLError
|
If the download URL cannot be found |
Source code in src/torah_dl/core/extractors/naaleh.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|