DEV Community

Connor Bode
Connor Bode

Posted on

 

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!

Top comments (0)

50 CLI Tools You Can't Live Without

The top 50 must-have CLI tools, including some scripts to help you automate the installation and updating of these tools on various systems/distros.