DEV Community

Connor Bode
Connor Bode

Posted on

2

Use Python and Beautiful Soup to find text in HTML

(Skip to the tutorial)

So you're browsing the internet, feeling lonely and low on self-esteem, when suddenly YOU FIND THIS DANK COLLECTION OF CAT MEMES. And you think to yourself:

But these greedy internet cat meme people, they don't have an API.. why o why don't they have an API?

WE HATES IT WHEN THEY DON'T HAVE AN API

But we takes what we wants anyways.

We scrapes all the dank cat memes, all for ourselves. Because we're wizards, and we knows how to crawl a website and grab all the photos.

BUT WHAT IF WE WANTS TO GRAB THE TEXT??

We check out this tutorial and use Beautiful Soup to find the text!

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay