
Explore combining web scraping with data analysis in Python using BeautifulSoup and pandas to fetch ESG scores from Yahoo Finance and apply Markowitz portfolio optimization to the Swiss market index.
Trace web scraping's evolution from the World Wide Web's early days to modern Python tools—beautifulsoup, scrapy, and selenium—highlighting its indispensable role for data professionals.
Explore the basics of HTML, its structure and tags, including doctype, html, head, and body, plus header and paragraph elements, and saving and running HTML files locally.
Explore HTML basics by working with headers, paragraphs, links, and divisions, and apply CSS to style a red bordered, center-aligned section using a class.
Master the structure of HTML lists and tables, including ul, ol, li, thead, tbody, tr, th, and td with practical examples and borders.
Explore how BeautifulSoup fetches a page, stores the response as a soup object, parses HTML, and uses find or find_all with a second-parameter dictionary to select specific tags.
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.
Learn to scrape a webpage with BeautifulSoup: fetch html, parse with bs4, extract titles and paragraphs from five divisions, and export to csv.
Define ESG as environmental, social, and governance measures guiding sustainable investing. Examine ESG rating scores, data provider differences, and how Markowitz portfolio theory can integrate ESG.
Scrape ESG scores from Yahoo Finance for the Swiss Market Index using a stock. Use a user-agent header and BeautifulSoup to extract the sustainability score and prepare a pandas dataframe.
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.
Retrieve company industry sectors from Yahoo Finance and merge them with ESG scores to analyze and visualize ESG score distribution by sector using Python.
Explore classic and extended portfolio selection theory by Markowitz, focusing on the minimum variance portfolio, efficient frontier, and Sharpe ratio to balance return and risk.
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.
Apply Markowitz theory to build a minimum-variance portfolio for the Swiss market index using Yahoo Finance data, compute covariances, and optimize weights under constraints.
Explore the Markowitz model extended with ESG, minimizing portfolio volatility under constraints for maximum return and value, with theta_p equal to the weighted sum of theta_i and a trade-off.
Construct a minimum variance portfolio for the SMI with ESG, incorporating ESG constraints into the MVP, optimizing allocations, and visualizing how ESG scores influence risk, return, and diversification.
Demonstrates calculating the efficient frontier by minimizing portfolio volatility under a constant return and ESG constraint, plotted as a risk–return frontier.
Explore an end-to-end web scraping and data analysis workflow in Python, using BeautifulSoup, NumPy, and pandas to analyze Yahoo Finance and Sustainalytics ESG data and evaluate risk and return.
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.