top of page
Search

Web-Scraping - Data Science

  • Writer: Thakkar Vedang
    Thakkar Vedang
  • Jul 28, 2021
  • 2 min read

Updated: Jul 31, 2021




In this blog we will be learning how to extract data from any website and and analyze it for better purpose. Now, There are many online shopping companies which provides such facility to purchase such items. But the time taking task is to find perfect Mobile-phone from various available option. You can select your choice easily for that here “Web-scrapping” comes in to the picture. as word suggests i.e. collecting data from web.


On some of the website it is illegal to use web-scrapping. Now lets dive in the technical part. For the scrapping we will be using Python now lets install required libraries, run all the commands in either cmd or you can use Pycharm IDE ,



  1. Selenium: It is extensively used for browser automation . Installation : pip install selenium. Now check the version of chrome and open this link and download chrome driver of version same as of your chrome.

  2. Beautiful Soup : It is a Python library for pulling data out of HTML and XML files. Installation : pip install beautifulsoup4

  3. Pandas : Pandas is a software library written for the Python programming language for data manipulation and analysis. Installation : pip install pandas


Steps To get the final csv file with required data.



2. Right click in web page and select inspect for inspect element.



3. For the product and note down the class name which we will use to get the data from web page using beautiful soup in python.


4. Write down the python code for web scrapping and run it and store the data in CSV file. Which we can use for various purpose.





Output :

Stored Data in CSV file

 
 
 

Comments


bottom of page