Skip to content

Commit dfb5e0b

Browse files
committed
Update to v6.4.07, Add 1 file, Update 3 files
2025-05-20 21:59 - Add: notes/scripts/work/tajweed-mushaf-images/ - Update: androidApp-kt/.idea/caches/deviceStreaming.xml - Update: js/navbar.js - Update: js/navbar.min.js
1 parent 08c31a5 commit dfb5e0b

File tree

5 files changed

+93
-14
lines changed

5 files changed

+93
-14
lines changed

androidApp-kt/.idea/caches/deviceStreaming.xml

Lines changed: 35 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/navbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// this was initially just navbar code, but then i added other snippets i needed on every page, but not the dt stuff
22

3-
var hmvVersionNo = "6.4.06";
3+
var hmvVersionNo = "6.4.07";
44
// changed from 4.1.43 to 6.2.88, to match number of commits
55

66
// cant be 4.0, has to be like 4.1 or 4.01, as empty zeros will get removes

js/navbar.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import requests
2+
import os
3+
4+
# Directory to save images
5+
save_dir = 'downloaded_images'
6+
os.makedirs(save_dir, exist_ok=True)
7+
8+
# Base URL of the images
9+
base_url = 'https://easyquran-eg.com/qrhafs/assets/frontend/dist/img/'
10+
11+
for i in range(1, 605): # 605 because range is exclusive at the end
12+
image_number = f"{i:03d}" # Format number as three digits with leading zeros
13+
image_url = f"{base_url}{image_number}.jpg"
14+
response = requests.get(image_url)
15+
16+
if response.status_code == 200:
17+
with open(os.path.join(save_dir, f"{image_number}.jpg"), 'wb') as file:
18+
file.write(response.content)
19+
print(f"Downloaded {image_url}")
20+
else:
21+
print(f"Failed to download {image_url}")
22+
23+
print("Download complete.")
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
i want to download images from a site
2+
3+
the image links look like this:
4+
https://easyquran-eg.com/qrhafs/assets/frontend/dist/img/001.jpg
5+
https://easyquran-eg.com/qrhafs/assets/frontend/dist/img/002.jpg
6+
7+
all the way up to:
8+
https://easyquran-eg.com/qrhafs/assets/frontend/dist/img/604.jpg
9+
10+
i want them in a folder
11+
12+
13+
...
14+
15+
You can download images from the specified links using Python. Here's a script that uses the requests library to download the images and the os library to save them in a specified folder:
16+
17+
Make sure you have the necessary libraries installed:
18+
19+
20+
pip install requests
21+
22+
23+
Use the following Python script to download the images:
24+
25+
...
26+
27+
This script will:
28+
29+
Create a directory named downloaded_images to save the downloaded images.
30+
Loop through numbers from 1 to 604, formatting each number to three digits with leading zeros (e.g., 001, 002, ... 604).
31+
Construct the full URL for each image.
32+
Send a request to download each image.
33+
Save each image in the downloaded_images directory if the download is successful.

0 commit comments

Comments
 (0)