MSSQLTips.com · October 17, 2024
Web Scraping with Python Scrapy Framework
This tutorial introduces the Python Scrapy framework through an example that extracts information from the MSSQLTips author directory and individual author profiles. It demonstrates configuring a spider, selecting HTML elements, following profile links and collecting structured records through Scrapy callbacks.
The extracted data is processed with pandas to calculate author activity, including average contributions per year. Seaborn and Matplotlib charts compare the contributions of authors and Microsoft MVPs. The example covers the workflow from collecting web data to preparing and visualizing it, providing a starting point for more complex scraping projects.