TextileBiz Analytics is an advanced data-driven pricing optimization solution designed for the textile industry. This project leverages real-time price scraping, competitive market analysis, dynamic pricing strategies, and machine learning to help businesses make informed pricing decisions.
- Standardizes and prepares raw textile pricing data for analysis.
- Removes missing values and normalizes column formats.
- Extracts real-time pricing data from Amazon & Google.
- Uses automated web scraping techniques with proxy support.
- Identifies overpriced, underpriced, and competitive items.
- Generates detailed pricing analysis reports.
- Applies business rules to adjust pricing based on competitors.
- Ensures minimum profit margins and strategic price reductions.
- Trains a Linear Regression Model to predict optimized prices.
- Factors in cost price, competitor price, seasonality, and location.
- Provides interactive visual analytics for pricing trends.
- Showcases competitor benchmarking and optimal price recommendations.
- Access the published dashboard here.
TextileBiz-Analytics-Smart-Pricing-Market-Analysis/
βββ data/
β βββ Textile_data2.txt.csv # Original raw dataset
β βββ Enhanced_Textile_Dataset.csv # Cleaned dataset
β βββ Pricing_Analysis_Report.csv # Pricing classification results
β βββ Optimized_Pricing_Dataset.csv # Adjusted pricing after rules
β βββ Final_ML_Pricing_Dataset.csv # ML-predicted optimal prices
βββ models/
β βββ trained_model.pkl # Trained Machine Learning model
βββ scripts/
β βββ cleaning_dataset.py # Data cleaning & preprocessing
β βββ price_scraper.py # Web scraping (Amazon & Google)
β βββ price_analysis.py # Competitive pricing classification
β βββ optimize_price.py # Dynamic pricing strategy implementation
β βββ train_model.py # Machine Learning model training
βββ notebooks/
β βββ TextileBiz_Analytics_Analysis.ipynb # Jupyter Notebook with full pipeline
βββ dashboards/
β βββ screenshots/
β βββ dashboard1.png # dashboard view
β βββ dashboard2.png # dashboard view
β βββ dashboard3.png # dashboard view
β βββ Textile_Pricing_Dashboard.pbix # Power BI Dashboard file
βββ templates/
β βββ dashboard.html # Frontend to access the published Power BI dashboard
βββ app.py # Flask application to serve dashboard
βββ README.md # Project documentation
βββ requirements.txt # Python dependencies
π The Textile_Pricing_Dashboard.pbix file in the dashboards/
folder provides:
β Market Trends | β Price Competitiveness | β Optimized Pricing Insights
To use:
- Open Power BI Desktop.
- Load
dashboards/Textile_Pricing_Dashboard.pbix
. - Analyze pricing trends, competitor insights, and ML-based pricing predictions.
Alternatively, access the published version directly from the web here.
Note: you have to login through your organisation domain to access through web
The config/config.yaml
file stores key parameters, including:
πΉ Pricing adjustment rules
πΉ Web scraping settings
πΉ Machine learning hyperparameters
Modify this file to customize your pricing strategy.
- Backend: Flask
- Data Processing: Pandas, NumPy
- Web Scraping: BeautifulSoup, Requests, Fake-UserAgent
- Machine Learning: Scikit-Learn (Linear Regression)
- Visualization: Power BI
- Development Tools: Python, Jupyter Notebook
- Data Quality Checks β Ensures clean and structured data.
- Model Evaluation β Validates accuracy of pricing predictions.
- Competitor Benchmarking β Verifies scraped data against actual market prices.
1οΈβ£ Install dependencies:
pip install -r requirements.txt
2οΈβ£ Run the Flask app:
python app.py
3οΈβ£ Open the browser and go to:
http://127.0.0.1:5000/
This will render the dashboard.html template with a button linking to the published Power BI dashboard.
Developed by: Saideep Rangoni
- Email: saideeprangoni634@gmail.com
- LinkedIn: My Profile