
Apply BeautifulSoup to a local test.html file using Jupyter notebook, install and import requests, bs4, and pandas, and extract paragraphs, links, and table data with find, find_all, and text.
generalize scraping esg scores for all SMI stocks with a reusable Python function, parsing ticker URLs and handling missing data by assigning 100, then build a pandas dataframe.
Learn to build a minimum variance portfolio for two stocks by estimating returns and the covariance matrix. Use SciPy to optimize weights and obtain the 69/31 allocation with 5.7% volatility.
Have you ever wondered how web scraping works and what added value you can gain from the extracted data? Plus the opportunity to get more information by analyzing data in an end-to-end project in Python? Then this is the right course for you!
In this course “Web Scraping and Data Analysis with Python – A Practical Introduction Applied to ESG Rating and Stock Market Data,” I will provide you a comprehensive introduction on how to apply web scraping and data analysis approaches in Python using financial data from Yahoo Finance as a test-bed. After a brief insight into HTML, we will cover the essentials of web scraping using BeautifulSoup, a well-known library in Python, in order to extract a series of ESG (Environmental, Social, and Governance) scores along with their underlying stock prices.
In turn, we will move to the data analysis part, where we will conduct portfolio optimizations based on the Markowitz model. There, you will get familiar with the approaches on how to perform a classic portfolio optimization and then enhance it by incorporating the ESG scores obtained from the web scraping part. This will help you gaining an understanding on how to make data-driven decisions in finance, and to assess the effect between the risk/return profile and sustainability factors.
By the end of this course, you will obtain the skills to build your own web scraping and data analysis projects in Python, enabling you to extract valuable information from the web and turn it into actionable insights.