These code samples are for Wikipedia content Scraping using python
Basically it will generate two text file and one word file which contain title.txt and urllink.txt meanwhile for word doc it combine into one table of the title and url link
-
Save the content into text file
-
run the code provided above which are wiki2text.py
# Example run the code
python wiki2text.py --txt sector_singapore.txt --loc singapore