Jul-20-2024, 06:35 PM
Hi everyone, since I love python language very much, I am constantly experimenting and this time I am trying to make a new experiment, I have been researching on this for 10 days but I have not been successful.
My requests in the Python code I failed : This Python code downloads product images from the BoohooMan website, creates a folder for each product and saves them in folders. The code is also organized to convert the images to base64 format and save them to a file.
The product list I want : https://www.boohooman.com/us/mens/tops/t...20T-Shirts
I need help very urgently, thank you in advance.
Pulling Image URLs from HTML Content:
Issue: When pulling image URLs, we could not properly separate the product IDs from the data-url attribute.
Creating an Image URL Format:
Issue: The image URL format was incompatible with the previous method. The new format needed to include ?$product_image_category_category_category_page_tablet_landscape_pro_2x$.
Downloading and Saving Images:
Issue: The download worked, but the files were not saved in the specified folder. This can often be caused by file path or permission issues.
Saving with Base64:
Issue: Images were not saved in base64 format. The script should have been set to convert the image to base64 and save it to a txt file.
My requests in the Python code I failed : This Python code downloads product images from the BoohooMan website, creates a folder for each product and saves them in folders. The code is also organized to convert the images to base64 format and save them to a file.
The product list I want : https://www.boohooman.com/us/mens/tops/t...20T-Shirts
I need help very urgently, thank you in advance.
Pulling Image URLs from HTML Content:
Issue: When pulling image URLs, we could not properly separate the product IDs from the data-url attribute.
Creating an Image URL Format:
Issue: The image URL format was incompatible with the previous method. The new format needed to include ?$product_image_category_category_category_page_tablet_landscape_pro_2x$.
Downloading and Saving Images:
Issue: The download worked, but the files were not saved in the specified folder. This can often be caused by file path or permission issues.
Saving with Base64:
Issue: Images were not saved in base64 format. The script should have been set to convert the image to base64 and save it to a txt file.