This Python script extracts product data from a website, processes it, and uploads it to an e-commerce platform.
- CSV Input: Extracts basic product information from
products.csv
based on the given index. - Web Scraping: Uses
BeautifulSoup
andrequests
to collect detailed product data (title, description, price, images) from a product webpage. - Image Processing:
- Downloads images with a custom
download
function. - Uploads images using the
upload_image
function.
- Downloads images with a custom
- Product Creation:
- Assembles the data into a structured product object.
- Calls
create_product
to upload this data to the e-commerce platform.
- External Libraries:
BeautifulSoup
,pandas
,requests
- Custom Modules:
download
,upload
,product