Rust Scraper avatar
Rust Scraper
Try for free

No credit card required

View all Actors
Rust Scraper

Rust Scraper

lukaskrivka/rust-scraper
Try for free

No credit card required

Speed of light scraping with Rust programming language! This is an early alpha version for experimenting, use at your own risk!

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "urls": [
8    {
9      "url": "http://example.com"
10    }
11  ],
12  "extract": [
13    {
14      "field_name": "title",
15      "selector": "h1",
16      "extract_type": {
17        "type": "Text"
18      }
19    },
20    {
21      "field_name": "description",
22      "selector": "p",
23      "extract_type": {
24        "type": "Text"
25      }
26    }
27  ],
28  "proxy_settings": {
29    "useApifyProxy": true
30  }
31}
32EOF
33
34# Run the Actor using an HTTP API
35# See the full API reference at https://docs.apify.com/api/v2
36curl "https://api.apify.com/v2/acts/lukaskrivka~rust-scraper/runs?token=$API_TOKEN" \
37  -X POST \
38  -d @input.json \
39  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
  • 2 monthly users
  • 100.0% runs succeeded
  • 0.0 days response time
  • Created in Feb 2019
  • Modified about 3 years ago
Categories