Skip to content

Python script to scrape the data from HTML page containing single table to csv file

Notifications You must be signed in to change notification settings

BinodAryal/html-scrape-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Scrape the single table from html page to csv file

Code will scrape all the data from single table in given HTML page to CSV file containing inside 'out' directory.

Requirement:
  • Python 2.7.12 +
  • BeautifulSoup

To run the script you need to have BeautifulSoup installed. You can get it with pip install beautifulsoup once the BeautifulSoup is installed, install HTML parser with pip install lxml

If you are using python 3 + change from urllib2 import urlopen in run.py to from urllib import urlopen

Running

Once the BeautifulSoup and HTML parser are setup use:

git clone https://github.com/BinodAryal/html-scrape-it.git
cd html-scrape-it
python run.py

About

Python script to scrape the data from HTML page containing single table to csv file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages