This Python script allows you to fetch detailed information about a mobile phone from the 91mobiles website based on its name. The script uses web scraping techniques to extract specifications and saves them in an Excel file for easy reference.
Before using this script, make sure you have Python installed on your system. You can download Python from python.org.
Additionally, you need to install the following Python libraries:
pip install requests
pip install beautifulsoup4
pip install pandas
To use the code, simply run the following command in the terminal:
python mobile_phone_specification.py
You will be prompted to enter the name of the mobile phone. Once you enter the name, the code will get the specifications of the phone and save them in an Excel file with the name of the phone.
[+] Enter mobile name: iphone 13 pro max
Screen Size: 6.7 inches
Resolution: 1284 x 2778 pixels
Processor: Apple A15 Bionic
RAM: 6GB
Storage: 128GB, 256GB, 512GB, 1TB
Rear Camera: 12MP + 12MP + 12MP
Front Camera: 12MP
Battery: 4352mAh
Operating System: iOS 15
The code will generate an Excel file with the name of the mobile phone, containing the following columns:
Key Value The Key column will contain the names of the specifications, and the Value column will contain the values of the specifications.
Please be aware that web scraping may be subject to the terms of service of websites. Ensure you have the necessary permissions to scrape data from the 91mobiles website, and respect their policies.
This project is licensed under the MIT License - see the LICENSE file for details.