A Python GUI application for scraping product information from Weidian product pages and exporting the results to Excel.
- User-friendly GUI: Enter multiple Weidian product links and start scraping with a single click.
- Automated scraping: Uses Selenium and undetected-chromedriver to extract product name, price, main image, and color variant details.
- Excel export: Results are saved to
product_variants.xlsxfor easy access and analysis. - Threaded processing: Responsive interface with loading popup during scraping.
-
Clone the repository or download the source files.
-
Install dependencies:
pip install -r requirements.txt
Required packages:
- selenium
- undetected-chromedriver
- pandas
- openpyxl
- tkinter
- re
- selenium_stealth
-
(Optional) Install customtkinter:
pip install customtkinter
-
Run the GUI:
python GUI.py
-
Enter Weidian product links (one per line) in the text box.
-
Click "Submit" to start scraping.
-
Wait for processing to complete. A popup will notify you when done.
-
Find your results in
product_variants.xlsxin the project directory.
GUI.py— Main GUI application.weidian_Scraper.py— Scraper logic and Excel export.requirements.txt— Python dependencies.
- Make sure Chrome is installed and compatible with the version of
undetected-chromedriver. - If you encounter errors, check that all dependencies are installed and up to date.
The application includes comprehensive error handling for:
- Invalid URLs
- Network issues
- Missing product information
- Browser automation failures

