Created
October 26, 2024 19:26
-
-
Save josifoski/bd1b256eab84ea63ec0015e8307dc0c9 to your computer and use it in GitHub Desktop.
Симнување на .mp3 аудио датотеките на Библијата на македонски Аудио
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Програм за симнување на Аудио Библија на македонски од divinerevelations | |
| site: https://www.divinerevelations.info/documents/bible/macedonian_mp3_bible/macedonian_mkv_drama/ | |
| програмер: Александар Јосифоски https://about.me/josifsk | |
| Dependancy: pip install -U dload | |
| """ | |
| # Please bellow rename output directory with aboslute path to it | |
| output_dir = '/data/audio/divine_revelations' | |
| import dload | |
| import codecs | |
| import re | |
| import time | |
| time1 = time.time() | |
| def calculate_time(): | |
| '''function to calculate elapsed time''' | |
| time2 = time.time() | |
| hours = int((time2-time1)/3600) | |
| minutes = int((time2-time1 - hours * 3600)/60) | |
| sec = time2 - time1 - hours * 3600 - minutes * 60 | |
| print("processed in %dh:%dm:%ds" % (hours, minutes, sec)) | |
| print("End of program.") | |
| def main(): | |
| print(names) | |
| print('Download started using threading') | |
| base_url = 'https://www.divinerevelations.info/documents/bible/macedonian_mp3_bible/macedonian_mkv_drama/' | |
| urls = [] | |
| for book_name in names: | |
| urls.append(base_url + book_name) | |
| dload.save_multi(urls, dir=output_dir, max_threads=5, tsleep=0.1) | |
| calculate_time() | |
| if __name__ == '__main__': | |
| names = ['01_genesis.mp3', '02_exodus.mp3', '03_leviticus.mp3', '04_numbers.mp3', '05_deuteronomy.mp3', '06_joshua.mp3', '07_judges.mp3', '08_ruth.mp3', '09_1_samuel.mp3', '10_2_samuel.mp3', '11_1_kings.mp3', '12_2_kings.mp3', '13_1_chronicles.mp3', '14_2_chronicles.mp3', '15_ezra.mp3', '16_nehemiah.mp3', '17_esther.mp3', '18_job.mp3', '19_psalms.mp3', '20_proverbs.mp3', '21_ecclesiastes.mp3', '22_song_of_solomon.mp3', '23_isaiah.mp3', '24_jeremiah.mp3', '25_lamentations.mp3', '26_ezekiel.mp3', '27_daniel.mp3', '28_hosea.mp3', '29_joel.mp3', '30_amos.mp3', '31_obadiah.mp3', '32_jonah.mp3', '33_micah.mp3', '34_nahum.mp3', '35_habakkuk.mp3', '36_zephaniah.mp3', '37_haggai.mp3', '38_zechariah.mp3', '39_malachi.mp3', '40_matthew.mp3', '41_mark.mp3', '42_luke.mp3', '43_john.mp3', '44_acts.mp3', '45_romans.mp3', '46_1_corinthians.mp3', '47_2_corinthians.mp3', '48_galatians.mp3', '49_ephesians.mp3', '50_philippians.mp3', '51_colossians.mp3', '52_1_thessalonians.mp3', '53_2_thessalonians.mp3', '54_1_timothy.mp3', '55_2_timothy.mp3', '56_titus.mp3', '57_philemon.mp3', '58_hebrews.mp3', '59_james.mp3', '60_1_peter.mp3', '61_2_peter.mp3', '62_1_john.mp3', '63_2_john.mp3', '64_3_john.mp3', '65_jude.mp3', '66_revelation.mp3'] | |
| main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment