691 stable releases

new 2.13.3 Nov 8, 2024
2.11.0 Oct 31, 2024
1.99.37 Aug 14, 2024
1.99.13 Jul 31, 2024
1.26.7 Mar 22, 2023

#520 in Web programming

Download history 634/week @ 2024-07-19 814/week @ 2024-07-26 1205/week @ 2024-08-02 1402/week @ 2024-08-09 807/week @ 2024-08-16 2674/week @ 2024-08-23 1874/week @ 2024-08-30 1328/week @ 2024-09-06 1115/week @ 2024-09-13 2061/week @ 2024-09-20 2078/week @ 2024-09-27 4663/week @ 2024-10-04 2462/week @ 2024-10-11 4196/week @ 2024-10-18 1686/week @ 2024-10-25 3468/week @ 2024-11-01

12,643 downloads per month

MIT license

710KB
14K SLoC

Spider Worker

crate version

A spider worker to decentralize the crawl lifting.

Dependencies

This project depends on the spider crate.

Usage

The worker starts on port 3030 and the scraper for html gathering on 3031 by default.

SPIDER_WORKER_PORT=3030 SPIDER_WORKER_SCRAPER_PORT=3031 cargo run

Feature Flags

  1. scrape - When the html is needed run the instance with the flag. Requires spider feature flag matching on the client to start. This also starts the instance on port 3031 instead.
  2. full_resources - Start the basic worker to gather links and scraper together.
  3. tls - Enable tls support use the env variables SPIDER_WORKER_CERT_PATH for the .pem file and SPIDER_WORKER_KEY_PATH with your .rsa file. Defaults to /cert.pem and /key.rsa.

Ports

By default the instance runs on port 3030 use SPIDER_WORKER_PORT to adjust the port. The scraper runs on port 3031 when enabled use SPIDER_WORKER_SCRAPER_PORT to adjust the port.

Dependencies

~25–39MB
~697K SLoC