Code will scrape all the data from single table in given HTML page to CSV file containing inside 'out' directory.
- 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
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