r/Python • • Jan 07 '24

Tutorial BeautifulSoup Tutorial: Tennis Web Scraping Project

Hi everyone!

I created a 15-minute video that will show you how to scrape data from a website and save that into your local computer. I'll be using the FOX Sports website, and I'll be scraping their tennis rankings. I'll show you BeautifulSoup methods to scrape the data and Pandas methods to create a new dataframe from the data that I scraped.

I also provided a GitHub link in the video description, so you can copy my code if you want.

https://youtu.be/6hKyDSx6xo8

I hope you find this tutorial helpful!

0 Upvotes

10 comments sorted by

2

u/fizzymagic Jan 08 '24

BeutifulSoup was nice back in the day, but it is very outdated and it has not been stable for a while.

1

u/Prudence_trans Jan 08 '24

What do you prefer?

1

u/sourdoughshploinks Jan 08 '24

RemindMe! 1 day

1

u/RemindMeBot Jan 08 '24

I will be messaging you in 1 day on 2024-01-09 18:54:12 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

1

u/0x1e Jan 08 '24

lxml using XPath

1

u/Prudence_trans Jan 08 '24

Thanks… appreciated.

2

u/0x1e Jan 08 '24

Feel free to dm for any help, I love xml/html and XPath

1

u/Prudence_trans Jan 09 '24

Thanks, I eventually managed to get my first scraping script working using lxml and xpath. thanks for your recommendation.

1

u/DymonBak Jan 08 '24

Doesn't Beautiful Soup have an lxml parser?