Easy Web Scraping With BeautifulSoup and Python | Tutorial

Published: 13 November 2022
on channel: Thomas Jadallah
57,898
667

Web scraping is really easy to do in Python with Beautiful Soup. Web scraping has many uses including pulling data off of the internet, automating data collection, and much more. BeautifulSoup is a Python tool made specifically for web scraping that is very efficient and easy to use. BeautifulSoup removes the HTML code from a site and strips away the information you want and inserts it into variables with just a few lines of code. We will be teaching you how to use it in this video.

Please remember to subscribe if you enjoyed this video. Here is the source code used:

import requests
from bs4 import BeautifulSoup

url = 'https://realpython.github.io/fake-jobs/'
html = requests.get(url)

s = BeautifulSoup(html.content, 'html.parser')

results = s.find(id='ResultsContainer')
job_title = results.find_all('h2', class_='title is-5')

for job in job_title:
print(job.text)


On this page of the site you can watch the video online Easy Web Scraping With BeautifulSoup and Python | Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Thomas Jadallah 13 November 2022, share the link with friends and acquaintances, this video has already been watched 57,898 times on youtube and it was liked by 667 viewers. Enjoy your viewing!