Metadata Scraper
Pricing
$20.00/month + usage
Metadata Scraper
Automatically scrape metadata such as title, description, heading and article from websites. It will crawl the start URLs and then scrape the metadata from the detail pages automatically navigating through the pagination.
Pricing
$20.00/month + usage
Rating
5.0
(3)
Developer

Louis Deconinck
Actor stats
6
Bookmarked
114
Total users
8
Monthly active users
a year ago
Last modified
Categories
Share
Automatically scrape metadata such as title, description, heading and article from websites. It will crawl the start URLs and then scrape the metadata from the detail pages automatically navigating through the pagination.
Features
- Scrapes metadata from specified websites
- Handles pagination and detail pages
- Extracts title, description, heading, and article content
- Configurable start URLs and maximum requests per crawl
- Ignores specified URLs so no duplicates when scraping multiple times
Input
Be sure to use JSON mode for the input and not Manual mode. Here's an overview of the input parameters:
startUrls: An array of objects containing:url: The starting URL for the scrapescrapeUrlGlobs: An array of URL patterns for detail pages to scrapepaginationUrlGlobs: An array of URL patterns for pagination pages (optional)
maxRequestsPerCrawl: Maximum number of requests per crawl (default: 100)urlsToIgnore: An array of URLs to ignore when processing (optional)
Here's an example of the input data structure:
{"startUrls": [{"url": "https://roger-hannah.co.uk/property-search/?search_properties=1&tenure=&property_type%5B%5D=Development&property_type%5B%5D=Industrial&size_min=0&size_max=1000000","scrapeUrlGlobs": ["https://roger-hannah.co.uk/properties/*"],"paginationUrlGlobs": []}],"maxRequestsPerCrawl": 100,"urlsToIgnore": ["https://roger-hannah.co.uk/properties/development-site-with-potential-for-10-houses-planning-permission/","https://roger-hannah.co.uk/properties/lower-mill-mill-street/"]}
Using Glob Patterns
Glob patterns are used to match URLs. They are similar to regular expressions but more flexible. They are used to match the URL patterns for detail pages and pagination pages.
Here are some common glob patterns used in URL matching:
*: Matches any number of characters (except/) Example:https://example.com/*.htmlmatches all HTML files in the root directory**: Matches any number of characters (including/) Example:https://example.com/**/*.jpgmatches all JPG files in any subdirectory?: Matches exactly one character Example:https://example.com/page?.htmlmatches page1.html, pageA.html, etc.[...]: Matches any one character in the brackets Example:https://example.com/file[123].txtmatches file1.txt, file2.txt, file3.txt[!...]: Matches any one character not in the brackets Example:https://example.com/img[!0-9].pngmatches imgA.png but not img1.png{...}: Matches any of the comma-separated patterns Example:https://example.com/{blog,news}/*.htmlmatches both blog and news HTML files
Examples in the context of web scraping:
https://example.com/products/*.html: Matches all product detail pageshttps://example.com/category/*/page-*.html: Matches pagination pages in all categorieshttps://example.com/{2021,2022,2023}/**: Matches all pages from specific yearshttps://example.com/page/*: Matches all pages in the root directoryhttps://example.com/page/**: Matches all pages in all subdirectories
When using glob patterns in the startGlobs configuration, make sure they accurately represent the structure of the website you're scraping to ensure all relevant pages are captured.
Output
The Actor outputs the following data for each scraped property listing:
url: The URL of the scraped pagetitle: The title of a detail pagedescription: The description of a detail pageheading: The main heading of a detail pagearticle: The content of a detail page
Here's an example of the output data structure:
{"url": "https://roger-hannah.co.uk/properties/bolton-street/","title": "Bolton Street - Roger Hannah","description": "Property Information The property comprises of a detached former warehouse/showroom facility constructed by way of a steel portal frame with concrete render under a pitched tiled roof. Access to the property is via personnel entrance doors fronting Bolton Street with rear loading access off Millett Street via two electrically operated roller shutter loading doors. There is a small private yard/parking/loading area to the rear of the premises. Internally, the facility provided flexible ground fl...","heading": "Bolton Street","article": "Property Information The property comprises of a detached former warehouse/showroom facility constructed by way of a steel portal frame with concrete render under a pitched tiled roof. Access to the property is via personnel entrance doors fronting Bolton Street with rear loading access off Millett Street via two electrically operated roller shutter loading doors. There is a small private yard/parking/loading area to the rear of the premises. Internally, the facility provided flexible ground fl..."}