The primary objective of this project is to show methods of handling messy real-world data. The domain of interest for this project is the results of Malaysian 15th General Election (PRU-15).
Web scraping is an essential skill for a data professional. An understanding of the data and its context are imperative in order to extract “correct” information. Without domain knowledge, we may pass the wrong and misleading information to the next analyst. They might use it to build whatever narrative based on their agenda. However, our task is to collect the most accurate data. Here, I present the method to extract election results from a news website article.
- Python
- Jupyter Notebook
- Pandas
- Selenium
- Matplotlib
A visualisation of MPs' relationships based on mentions in news articles could take the form of a network diagram, showing each MP as a node and lines connecting them representing mentions of one MP in an article about another. This would allow users to see which MPs have strong connections and which are more isolated. Overall, the visualisation would provide a useful way to understand the relationships between MPs based on news coverage.
- Python
- Jupyter Notebook
- Pandas
- Requests
- Newspaper3K
- SpaCy
- Scikit-Learn
- Numpy
- NetworkX
- PyVis