Merge pull request 'Add test images from bing search engine using scraper' (#27) from bing-scrapper into master
Reviewed-on: #27
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 112 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 96 KiB |
BIN
assets/learning/test/carrot/100.jpg
Normal file
After Width: | Height: | Size: 286 KiB |
BIN
assets/learning/test/carrot/101.jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
assets/learning/test/carrot/102.jpg
Normal file
After Width: | Height: | Size: 149 KiB |
BIN
assets/learning/test/carrot/103.jpg
Normal file
After Width: | Height: | Size: 168 KiB |
BIN
assets/learning/test/carrot/104.jpg
Normal file
After Width: | Height: | Size: 3.0 MiB |
BIN
assets/learning/test/carrot/105.jpg
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
assets/learning/test/carrot/106.jpg
Normal file
After Width: | Height: | Size: 220 KiB |
BIN
assets/learning/test/carrot/107.jpg
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
assets/learning/test/carrot/108.jpg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
assets/learning/test/carrot/109.jpg
Normal file
After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 28 KiB |
BIN
assets/learning/test/carrot/110.jpg
Normal file
After Width: | Height: | Size: 282 KiB |
BIN
assets/learning/test/carrot/111.jpg
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
assets/learning/test/carrot/112.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
assets/learning/test/carrot/113.jpg
Normal file
After Width: | Height: | Size: 137 KiB |
BIN
assets/learning/test/carrot/114.jpg
Normal file
After Width: | Height: | Size: 361 KiB |
BIN
assets/learning/test/carrot/115.jpg
Normal file
After Width: | Height: | Size: 124 KiB |
BIN
assets/learning/test/carrot/116.jpg
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
assets/learning/test/carrot/117.jpg
Normal file
After Width: | Height: | Size: 116 KiB |
BIN
assets/learning/test/carrot/118.jpg
Normal file
After Width: | Height: | Size: 801 KiB |
BIN
assets/learning/test/carrot/119.jpg
Normal file
After Width: | Height: | Size: 168 KiB |
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 97 KiB |
BIN
assets/learning/test/carrot/120.jpg
Normal file
After Width: | Height: | Size: 199 KiB |
BIN
assets/learning/test/carrot/121.jpg
Normal file
After Width: | Height: | Size: 169 KiB |
BIN
assets/learning/test/carrot/122.jpg
Normal file
After Width: | Height: | Size: 469 KiB |
BIN
assets/learning/test/carrot/123.jpg
Normal file
After Width: | Height: | Size: 217 KiB |
BIN
assets/learning/test/carrot/124.jpg
Normal file
After Width: | Height: | Size: 3.5 MiB |
BIN
assets/learning/test/carrot/125.jpg
Normal file
After Width: | Height: | Size: 226 KiB |
BIN
assets/learning/test/carrot/126.jpg
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
assets/learning/test/carrot/127.jpg
Normal file
After Width: | Height: | Size: 272 KiB |
BIN
assets/learning/test/carrot/128.jpg
Normal file
After Width: | Height: | Size: 122 KiB |
BIN
assets/learning/test/carrot/129.jpg
Normal file
After Width: | Height: | Size: 264 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 16 KiB |
BIN
assets/learning/test/carrot/130.jpg
Normal file
After Width: | Height: | Size: 187 KiB |
BIN
assets/learning/test/carrot/131.jpg
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
assets/learning/test/carrot/132.jpg
Normal file
After Width: | Height: | Size: 463 KiB |
BIN
assets/learning/test/carrot/133.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
assets/learning/test/carrot/134.jpg
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
assets/learning/test/carrot/135.jpg
Normal file
After Width: | Height: | Size: 294 KiB |
BIN
assets/learning/test/carrot/136.jpg
Normal file
After Width: | Height: | Size: 872 KiB |
BIN
assets/learning/test/carrot/137.jpg
Normal file
After Width: | Height: | Size: 3.5 MiB |
BIN
assets/learning/test/carrot/138.jpg
Normal file
After Width: | Height: | Size: 196 KiB |
BIN
assets/learning/test/carrot/139.jpg
Normal file
After Width: | Height: | Size: 584 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 60 KiB |
BIN
assets/learning/test/carrot/140.jpg
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
assets/learning/test/carrot/141.jpg
Normal file
After Width: | Height: | Size: 90 KiB |
BIN
assets/learning/test/carrot/142.jpg
Normal file
After Width: | Height: | Size: 117 KiB |
BIN
assets/learning/test/carrot/143.jpg
Normal file
After Width: | Height: | Size: 198 KiB |
BIN
assets/learning/test/carrot/144.jpg
Normal file
After Width: | Height: | Size: 101 KiB |
BIN
assets/learning/test/carrot/145.jpg
Normal file
After Width: | Height: | Size: 164 KiB |
BIN
assets/learning/test/carrot/146.jpg
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
assets/learning/test/carrot/147.jpg
Normal file
After Width: | Height: | Size: 1.9 MiB |
BIN
assets/learning/test/carrot/148.jpg
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
assets/learning/test/carrot/149.jpg
Normal file
After Width: | Height: | Size: 149 KiB |
Before Width: | Height: | Size: 240 KiB After Width: | Height: | Size: 263 KiB |
BIN
assets/learning/test/carrot/150.jpg
Normal file
After Width: | Height: | Size: 95 KiB |
BIN
assets/learning/test/carrot/151.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
assets/learning/test/carrot/152.jpg
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
assets/learning/test/carrot/153.jpg
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
assets/learning/test/carrot/154.jpg
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
assets/learning/test/carrot/155.jpg
Normal file
After Width: | Height: | Size: 132 KiB |
BIN
assets/learning/test/carrot/156.jpg
Normal file
After Width: | Height: | Size: 509 KiB |
BIN
assets/learning/test/carrot/157.jpg
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
assets/learning/test/carrot/158.jpg
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
assets/learning/test/carrot/159.jpg
Normal file
After Width: | Height: | Size: 202 KiB |
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 64 KiB |
BIN
assets/learning/test/carrot/160.jpg
Normal file
After Width: | Height: | Size: 270 KiB |
BIN
assets/learning/test/carrot/161.jpg
Normal file
After Width: | Height: | Size: 197 KiB |
BIN
assets/learning/test/carrot/162.jpg
Normal file
After Width: | Height: | Size: 153 KiB |
BIN
assets/learning/test/carrot/163.jpg
Normal file
After Width: | Height: | Size: 114 KiB |
BIN
assets/learning/test/carrot/164.jpg
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
assets/learning/test/carrot/165.jpg
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
assets/learning/test/carrot/166.jpg
Normal file
After Width: | Height: | Size: 133 KiB |
BIN
assets/learning/test/carrot/167.jpg
Normal file
After Width: | Height: | Size: 163 KiB |
BIN
assets/learning/test/carrot/168.jpg
Normal file
After Width: | Height: | Size: 761 KiB |
BIN
assets/learning/test/carrot/169.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 54 KiB |
BIN
assets/learning/test/carrot/170.jpg
Normal file
After Width: | Height: | Size: 106 KiB |
BIN
assets/learning/test/carrot/171.jpg
Normal file
After Width: | Height: | Size: 273 KiB |
19
assets/learning/test/carrot/172.jpg
Normal file
@ -0,0 +1,19 @@
|
||||
import os
|
||||
|
||||
# Function to rename multiple files
|
||||
def main():
|
||||
|
||||
for count, filename in enumerate(os.listdir()):
|
||||
dst = f"{str(count)}.jpg"
|
||||
src =f"./{filename}" # foldername/filename, if .py file is outside folder
|
||||
dst =f"./{dst}"
|
||||
|
||||
# rename() function will
|
||||
# rename all the files
|
||||
os.rename(src, dst)
|
||||
|
||||
# Driver Code
|
||||
if __name__ == '__main__':
|
||||
|
||||
# Calling main() function
|
||||
main()
|
BIN
assets/learning/test/carrot/173.jpg
Normal file
After Width: | Height: | Size: 302 KiB |
BIN
assets/learning/test/carrot/174.jpg
Normal file
After Width: | Height: | Size: 632 KiB |
BIN
assets/learning/test/carrot/175.jpg
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
assets/learning/test/carrot/176.jpg
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
assets/learning/test/carrot/177.jpg
Normal file
After Width: | Height: | Size: 691 KiB |
BIN
assets/learning/test/carrot/178.jpg
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
assets/learning/test/carrot/179.jpg
Normal file
After Width: | Height: | Size: 496 KiB |
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 42 KiB |
BIN
assets/learning/test/carrot/180.jpg
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
assets/learning/test/carrot/181.jpg
Normal file
After Width: | Height: | Size: 262 KiB |
BIN
assets/learning/test/carrot/182.jpg
Normal file
After Width: | Height: | Size: 90 KiB |
BIN
assets/learning/test/carrot/183.jpg
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
assets/learning/test/carrot/184.jpg
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
assets/learning/test/carrot/185.jpg
Normal file
After Width: | Height: | Size: 166 KiB |
BIN
assets/learning/test/carrot/186.jpg
Normal file
After Width: | Height: | Size: 186 KiB |
BIN
assets/learning/test/carrot/187.jpg
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
assets/learning/test/carrot/188.jpg
Normal file
After Width: | Height: | Size: 1012 KiB |
BIN
assets/learning/test/carrot/189.jpg
Normal file
After Width: | Height: | Size: 109 KiB |