mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-23 21:00:30 +08:00
22 lines
349 B
Python
22 lines
349 B
Python
"""
|
|
Example of the remover method
|
|
"""
|
|
from scrapegraphai.utils.remover import remover
|
|
|
|
HTML_CONTENT = """
|
|
<html>
|
|
<head>
|
|
<title>Test Page</title>
|
|
</head>
|
|
<body>
|
|
<h1>This is a Test</h1>
|
|
<p>Hello, World!</p>
|
|
<script>alert("This is a script");</script>
|
|
</body>
|
|
</html>
|
|
"""
|
|
|
|
parsed_content = remover(HTML_CONTENT)
|
|
|
|
print(parsed_content)
|