3 ms·
Nice, how does the Webscraper work? Will it work on e.g. a React site? Would be a nice use-case to plop a website into a chatbot easily, for example.
by james-revisoai 4y ago
Nice, how does the Webscraper work? Will it work on e.g. a React site?
Would be a nice use-case to plop a website into a chatbot easily, for example.
- vasinov 4y agoThe WebScraper tool uses Trafilatura [1] to scrape and parse HTML—nothing too fancy. "Scraping" a React site would require a totally different approach, probably something more akin to Adept's ACT-1 [2]. I run a local chat app built with Griptape and I use it to give me summaries of web pages or answer specific questions all the time :) 1. https://github.com/adbar/trafilatura/ https://github.com/adbar/trafilatura/ 2. https://www.adept.ai/blog/act-1 https://www.adept.ai/blog/act-1
- d4rkp4ttern 4y agoDo you see an advantage with Trafilatura compared to say BeautifulSoup and other packages for scaping?
- vasinov 4y agoI think BeautifulSoup is great but it's more of a set of building blocks that requires developers to implement their custom scraping logic. Trafilatura is awesome because it just works out of the box for most common tasks related to web scraping.
- d4rkp4ttern 4y agoAh that’s nice to know, thank you.