Skip to content

I have scrapped a raw data from a website then I've broken the data in four different forms and made four different columns and finally store as a tabular data in csv format with the help of Pandas. Record file has all the data in the tabular form in Csv format

Notifications You must be signed in to change notification settings

EngrHassaan/Web-Scrapping

Repository files navigation

Web-Scrapping

I have scrapped a raw data from a website using python First of all I have viewed the source page of the webpage I have to scrap the data in four formats

  1. "Date" was enclosed in a strong tag
  2. "Text" was in the form of contents in simple text
  3. "Description" was enclosed in an anchor tag
  4. "Url" was enclosed in a href

Then I've broken the data in four different forms stored them in the list in order to made four different columns. Finally store as a tabular data in csv format with the help of Pandas and name them "Date", "Lies", "Explanation" and "URL" accordingly. "Record" file has all the data in the tabular form in Csv format.

Requirements

Python 3.5 

Pandas ($ pip install pandas)

requests ($ pip install requests)

BeautifulSoup4 ($ pip install beautifulsoup4) or ($ pip install bs4)

Jupyter Notebook

About

I have scrapped a raw data from a website then I've broken the data in four different forms and made four different columns and finally store as a tabular data in csv format with the help of Pandas. Record file has all the data in the tabular form in Csv format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published