Comments (1)
Hi @MihirModi1421 take a look at this example here to extract content as text https://github.com/seoderapp/seoder/blob/main/seoder_lib/src/packages/spider/fs.rs#L171C6-L171C6.
The main gist is to use Html::parse_document(&my_html)
and element.text().map(|s| s.chars()).flatten().collect()
for the element nodes to get the text content. You can use the selector crate to use CSS selectors to get exactly what you want or just iterate over all the nodes of Html::parse_document
.
from spider.
Related Issues (20)
- Add the ability to download not only html, but also all site assets: css, js, imgs, etc HOT 1
- cli tutorial store crawls result as json HOT 2
- Also extract urls that are pointing to other domains? [CLI] HOT 20
- error[E0061]: this function takes 2 arguments but 1 argument was supplied HOT 1
- only let me spider one url HOT 4
- cli parameters HOT 1
- The result of get_html is garbled in case of Shift_JIS html HOT 4
- `with_on_link_find_callback` doesn't exist HOT 2
- CLI - Not including the schema in -d parameter results in critical error HOT 3
- Scraping timeout Issue HOT 2
- Extracting all urls on a page HOT 8
- Support ignoring SSL errors HOT 4
- Some pages have 0 bytes from scraped page. After rerunning, different pages have 0 bytes HOT 11
- Scraped html does not match the url - chrome [with_wait_for_idle_network] HOT 17
- Chrome flag chrome_intercept page hang. HOT 1
- Is it possible to dynamicall add links to crawl? HOT 7
- Running with decentralized feature HOT 1
- Already crawled URL attempted as % encoded HOT 3
- Is it possible to extract broken links from the crawl? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spider.