Dec. 20, 2023, 5:43 a.m. | Ranjan Dailata

DEV Community dev.to




Introduction


In this blog post, you will be guided on how to perform a simple web scrapping using the available open source python packages. We are going to make use of the langchain and html2text.





Hands on


First, we need to make sure to install the langchain and html2text packages.



!pip install -q langchain playwright beautifulsoup4 html2text


Here's the code snippet for accomplishing the web scrapping. The following code is utilizing the langchain's AsyncHtmlLoader and the Html2TextTransformer from html2text package …

beginners blog install introduction langchain open source pip programming python scraping simple tutorial web web scraping will

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne