Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AI Web Scraper to scrape simple webpages using an LLM.

Notifications You must be signed in to change notification settings

DarkDk123/AI-Web-Scraper

Repository files navigation

AI Web Scraper πŸ€–

An AI Web Scraper using LangChain, HuggingFace, selenium etc.

Usage

  1. Install the required packages: pip install -r requirements.txt.
  2. Set the environments variables as explained below.
  3. Run the Streamlit app: streamlit run streamlit_main.py.
  4. Enter a URL and a description of what you want to parse from the website.
  5. The app will scrape the website, extract the relevant text, and use the HuggingFace model to parse the text.

Example: Scraping Github profiles

  • URL: https://github.com/techwithtim
  • query: Provide info about the Github profile

demo

Environment Variables

The AI Web Scraper uses the following environment variables:

  • HUGGINGFACE_MODEL_ID: The ID of the HuggingFace model to use for parsing the text.

  • UGGINGFACEHUB_API_TOKEN : HuggingFace Hub API token.

  • SBR_WEBDRIVER (Optional for captcha support): The URL of the Bright Data Webdriver to use for solving captchas.

Development

The AI Web Scraper is built using the following technologies:

  • streamlit: The web app framework.
  • langchain_huggingface: The library for using HuggingFace models in langchain.
  • langchain: Main langchain library.
  • selenium: The library for interacting with the browser.
  • bs4: The library for parsing HTML.

About

AI Web Scraper to scrape simple webpages using an LLM.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /