|
| 1 | +import React from 'react'; |
| 2 | +import clsx from 'clsx'; |
| 3 | +import styles from './Highlights.module.css'; |
| 4 | +import Gradients from './Gradients'; |
| 5 | + |
| 6 | +const FeatureList = [ |
| 7 | + { |
| 8 | + title: 'Python with type hints', |
| 9 | + Svg: require('../../static/img/features/runs-on-py.svg').default, |
| 10 | + description: ( |
| 11 | + <> |
| 12 | + Crawlee for Python is written in a modern way using type hints, providing code completion in your IDE |
| 13 | + and helping you catch bugs early on build time. |
| 14 | + </> |
| 15 | + ), |
| 16 | + }, |
| 17 | + // { |
| 18 | + // title: 'HTTP scraping', |
| 19 | + // Svg: require('../../static/img/features/fingerprints.svg').default, |
| 20 | + // description: ( |
| 21 | + // <> |
| 22 | + // Crawlee makes HTTP requests that <a href="https://crawlee.dev/docs/guides/avoid-blocking"><b>mimic browser headers and TLS fingerprints</b></a>. |
| 23 | + // It also rotates them automatically based on data about real-world traffic. Popular HTML |
| 24 | + // parsers <b><a href="https://crawlee.dev/docs/guides/cheerio-crawler-guide">Cheerio</a> |
| 25 | + // and <a href="https://crawlee.dev/docs/guides/jsdom-crawler-guide">JSDOM</a></b> are included. |
| 26 | + // </> |
| 27 | + // ), |
| 28 | + // }, |
| 29 | + { |
| 30 | + title: 'Headless browsers', |
| 31 | + Svg: require('../../static/img/features/works-everywhere.svg').default, |
| 32 | + description: ( |
| 33 | + <> |
| 34 | + Switch your crawlers from HTTP to a <a href="https://crawlee.dev/python/api/class/PlaywrightCrawler">headless browser</a> in 3 lines of code. |
| 35 | + Crawlee builds on top of <b>Playwright</b> and adds its own features. Chrome, Firefox and more. |
| 36 | + </> |
| 37 | + ), |
| 38 | + |
| 39 | + // TODO: this is not true yet |
| 40 | + // Crawlee builds on top of <b>Playwright</b> and adds its own <b>anti-blocking features and human-like fingerprints</b>. Chrome, Firefox and more. |
| 41 | + }, |
| 42 | + { |
| 43 | + title: 'Automatic scaling and proxy management', |
| 44 | + Svg: require('../../static/img/features/auto-scaling.svg').default, |
| 45 | + description: ( |
| 46 | + <> |
| 47 | + Crawlee automatically manages concurrency based on <a href="https://crawlee.dev/python/api/class/AutoscaledPool">available system resources</a> and |
| 48 | + <a href="https://crawlee.dev/python/api/class/ProxyConfiguration">smartly rotates proxies</a>. |
| 49 | + Proxies that often time-out, return network errors or bad HTTP codes like 401 or 403 are discarded. |
| 50 | + </> |
| 51 | + ), |
| 52 | + }, |
| 53 | + // { |
| 54 | + // title: 'Queue and Storage', |
| 55 | + // Svg: require('../../static/img/features/storage.svg').default, |
| 56 | + // description: ( |
| 57 | + // <> |
| 58 | + // You can <a href="https://crawlee.dev/docs/guides/result-storage">save files, screenshots and JSON results</a> to disk with one line of code |
| 59 | + // or plug an adapter for your DB. Your URLs are <a href="https://crawlee.dev/docs/guides/request-storage">kept in a queue</a> that ensures their |
| 60 | + // uniqueness and that you don't lose progress when something fails. |
| 61 | + // </> |
| 62 | + // ), |
| 63 | + // }, |
| 64 | + // { |
| 65 | + // title: 'Helpful utils and configurability', |
| 66 | + // Svg: require('../../static/img/features/node-requests.svg').default, |
| 67 | + // description: ( |
| 68 | + // <> |
| 69 | + // Crawlee includes tools for <a href="https://crawlee.dev/api/utils/namespace/social">extracting social handles</a> or phone numbers, infinite scrolling, blocking |
| 70 | + // unwanted assets <a href="https://crawlee.dev/api/utils">and many more</a>. It works great out of the box, but also provides |
| 71 | + // <a href="https://crawlee.dev/api/basic-crawler/interface/BasicCrawlerOptions">rich configuration options</a>. |
| 72 | + // </> |
| 73 | + // ), |
| 74 | + // }, |
| 75 | +]; |
| 76 | + |
| 77 | +function Feature({ Svg, title, description }) { |
| 78 | + return ( |
| 79 | + <div className={clsx('col col--4')}> |
| 80 | + <div className="padding-horiz--md padding-bottom--md"> |
| 81 | + <div className={styles.featureIcon}> |
| 82 | + {Svg ? <Svg alt={title}/> : null} |
| 83 | + </div> |
| 84 | + <h3>{title}</h3> |
| 85 | + <p>{description}</p> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + ); |
| 89 | +} |
| 90 | + |
| 91 | +export default function Highlights() { |
| 92 | + return ( |
| 93 | + <section className={styles.features}> |
| 94 | + <Gradients /> |
| 95 | + <div className="container"> |
| 96 | + <div className="row"> |
| 97 | + {FeatureList.map((props, idx) => ( |
| 98 | + <Feature key={idx} {...props} /> |
| 99 | + ))} |
| 100 | + </div> |
| 101 | + </div> |
| 102 | + </section> |
| 103 | + ); |
| 104 | +} |
0 commit comments