npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@directus-labs/ai-web-scraper-operation

v1.1.1

Published

Use Firecrawl's Web Scraping API to extract data from websites.

Downloads

62

Readme

AI Web Scraper Operation

Use Firecrawl's Web Scraping API to extract data from websites.

The AI Web Scraper operation, showing all options when configuring the extension

This flexible operation allows you to scrape websites and extract data using a variety of options. You must always provide an API Key and URL, and will always receive basic metadata in the response.

You may additionally provide the following options:

Include / Exclude Tags

These options allow you to control which HTML elements are included or excluded from the response when scraping web pages.

Actions Before Scraping

You can perform actions before scraping the website. Each action may have a number of options, which are defined in the options field as a JSON object. You do not need to define the type of action within the options, as it is set automatically based on the action you choose.

Data To Extract

You can extract specific data from the scraped website. Specify properties you want Firecrawl to extract, and their types (string, boolean, number, etc.), and the operation will extract the data and return it in the response. These keys will be returned in the response.

Formats

All requests using this operation will return metadata in the response. You may also request additional formats to be returned, such as markdown, html, and screenshot. If screenshot is requested, a link to the screenshot will be returned.

Output

The operation outputs a JSON object with the following structure:

{
  "extract": {
    "summary": "Firecrawl is an API service for crawling URLs and converting their content to clean data.",
    "license": "AGPL-3.0",
    "can_self_host": true
  },
  "actions": {
    "screenshots": [ "https://directlinktoimage.com/screenshot.png" ]
  },
  "metadata": {
    "title": "Quickstart | Firecrawl",
    "description": "Firecrawl allows you to turn entire websites into LLM-ready markdown",
    "language": "sen",
    "ogLocaleAlternate": [],
    "viewport": "width=device-width",
    "msapplication-config": "https://mintlify.s3-us-west-1.amazonaws.com/firecrawl/_generated/favicon/browserconfig.xml?v=3",
    "apple-mobile-web-app-title": "Firecrawl Docs",
    "application-name": "Firecrawl Docs",
    "msapplication-TileColor": "#000",
    "theme-color": "#ffffff",
    "charset": "utf-8",
    "og:type": "website",
    "og:site_name": "Firecrawl Docs",
    "twitter:card": "summary_large_image",
    "og:title": "Quickstart | Firecrawl",
    "twitter:title": "Firecrawl Docs",
    "og:image": "/images/og.png",
    "twitter:image": "/images/og.png",
    "og:description": "Firecrawl allows you to turn entire websites into LLM-ready markdown",
    "og:url": "https://docs.firecrawl.dev/introduction",
    "next-head-count": "25",
    "sourceURL": "https://docs.firecrawl.dev/introduction",
    "statusCode": 200
  }
}

Adding different formats will return additional data in the root object.