Images are not being scrapped!

images are not being scrapped??? why

{"_id":"bikroy","startUrl":["https://bikroy.com/en/ads/bangladesh/property"],"selectors":[{"id":"link","type":"SelectorLink","selector":"div.ui-item:nth-of-type(n+5) a.item-title","parentSelectors":["_root"],"multiple":true,"delay":0},{"id":"name","type":"SelectorText","selector":"div.item-top h1","parentSelectors":["link"],"multiple":false,"regex":"","delay":0},{"id":"details","type":"SelectorText","selector":"div.col-12 div.row:nth-of-type(2) div.col-12.lg-8","parentSelectors":["link"],"multiple":true,"regex":"","delay":0},{"id":"image","type":"SelectorImage","selector":"div.col-12 div.gallery-item.is-current img","parentSelectors":["link"],"multiple":false,"delay":0}]}

Hi!

Do you want images to be shown as links or download them?

Open up command line CMD

change directory to your folder with your .csv file of scraped data

cd C:\Users\YOURURLPATH\Desktop\YOURFOLDER\image-downloader-master

Change NAMEOFCSV to the name of your .csv and paste in to CMD and hit enter

python image-downloader.py NAMEOFCSV.csv encoding="ascii" errors="surrogateescape" errors='ignore'

the additional parameters avoids errors with download that stops the script from running.

I'm not sure if it helps. It stops after some downloading and I can see this in command line:

Traceback (most recent call last):
File "image-downloader.py", line 131, in
main(sys.argv)
File "image-downloader.py", line 123, in main
download_csv_file_images(csv_filename)
File "image-downloader.py", line 116, in download_csv_file_images
download_csv_row_images(row, dest_dir)
File "image-downloader.py", line 53, in download_csv_row_images
if key.endswith("-src"):
AttributeError: 'NoneType' object has no attribute 'endswith'

Honestly, I don't know what it means /:

the bolded part ignores errors and stops the script from failing

Hello,
If the file processing stops before the end and you are using MS Excel, you must also check that the CSV file is in UTF-8 format. It is best to use Open Office to manipulate CSV files.