TelRich / Web_Scrapping_with_BeautifulSoup-and-Wptool

Web scraping Webometrics and Wlkilpedia using Python (Beautiful soup and Wptools) to make a list of top 100 Universities in nigeria

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Scrapping with Beautiful Soup and Wptool API

This project is about listing the Top 100 Universities in Nigeria and gathering information about them. The first data was extracted with BeautifuSoup package, from Webometric Ranking table of 2020. This data include the list of the schools with their ranking and world ranking.

The other data was extracted from each school wikipedia page, with the help of Wptools API. It includes information such chancellor and vice-chancellor of the school, if there is any.

Libraries/Package Required

  • Requests
  • Pandas
  • BeautifulSoup
  • os
  • Wptools
  • Time
  • JSON
  • Numpy

Summary

The extraction from webometrics ranking using BeautifulSoup was successful.

While manually getting the urls of each school from wikipedia, some schools such as Federal University Kashere Gombe State, had no wikipedia page, while some school had wikipedia page but no infobox. As a result of some schools not having the required information needed, the JSON data was extracted with NaN as default value.

Both datas from Beautilful soup extraction and wptools extraction was merged together and saved to a file top_100_universities_in_nigeria.csv

About

Web scraping Webometrics and Wlkilpedia using Python (Beautiful soup and Wptools) to make a list of top 100 Universities in nigeria


Languages

Language:HTML 87.2%Language:Jupyter Notebook 12.8%