forked from Archives/langchain
b157e0c1c3
This `BSHTMLLoader` document_loader loads an HTML document, extracts text and adds the page title to the returned Document's metadata. The loader uses the already installed bs4 package to extract both text content and the page title. Included in this PR is an example HTML file and an integration test that tests against this file. --------- Co-authored-by: Daniel Chalef <daniel.chalef@private.org>
26 lines
947 B
HTML
26 lines
947 B
HTML
<html>
|
|
<head>
|
|
<title>Chew dad's slippers</title>
|
|
</head>
|
|
<body>
|
|
<h1>
|
|
Instead of drinking water from the cat bowl, make sure to steal water from
|
|
the toilet
|
|
</h1>
|
|
<h2>Chase the red dot</h2>
|
|
<p>
|
|
Munch, munch, chomp, chomp hate dogs. Spill litter box, scratch at owner,
|
|
destroy all furniture, especially couch get scared by sudden appearance of
|
|
cucumber cat is love, cat is life fat baby cat best buddy little guy for
|
|
catch eat throw up catch eat throw up bad birds jump on fridge. Purr like
|
|
a car engine oh yes, there is my human woman she does best pats ever that
|
|
all i like about her hiss meow .
|
|
</p>
|
|
<p>
|
|
Dead stare with ears cocked when owners are asleep, cry for no apparent
|
|
reason meow all night. Plop down in the middle where everybody walks favor
|
|
packaging over toy. Sit on the laptop kitty pounce, trip, faceplant.
|
|
</p>
|
|
</body>
|
|
</html>
|