Metadata Extractor avatar
Metadata Extractor
Try for free

No credit card required

View all Actors
Metadata Extractor

Metadata Extractor

jancurn/extract-metadata
Try for free

No credit card required

A small efficient actor that loads a web page, parses its HTML using Cheerio library and extracts the following meta-data from the <HEAD> tag, such as page title, description, author etc.

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    "https://www.apify.com/",
9    "https://blog.apify.com"
10  ],
11  "proxy": {
12    "useApifyProxy": true
13  }
14}
15EOF
16
17# Run the Actor using an HTTP API
18# See the full API reference at https://docs.apify.com/api/v2
19curl "https://api.apify.com/v2/acts/jancurn~extract-metadata/runs?token=$API_TOKEN" \
20  -X POST \
21  -d @input.json \
22  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
  • 35 monthly users
  • 74.6% runs succeeded
  • 0.0 days response time
  • Created in Feb 2018
  • Modified 6 months ago
Categories