Sitemap To Request Queue

Sitemap To Request Queue

by pocesar

Download sitemap XMLs and put them in a RequestQueue

217 runs
114 users
Try This Actor

Opens on Apify.com

About Sitemap To Request Queue

Download sitemap XMLs and put them in a RequestQueue

What does this actor do?

Sitemap To Request Queue is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Sitemap to RequestQueue Downloads a sitemap.xml files and append them to a RequestQueue of your choice. ## Example js // this is your actor Apify.main(async () => { const { proxyConfig } = await Apify.getInput(); const requestQueue = await Apify.openRequestQueue(); // this is needed so it doesn't execute everytime there's a migration const run = (await Apify.getValue('SITEMAP-CALL', run)) || { runId: '', actorId: '' }; if (!run || !run.runId) { // this might take a while! const runCall = await Apify.call('pocesar/sitemap-to-request-queue', { // required proxy configuration, like { useApifyProxy: true, apifyProxyGroups: ['SHADER'] } proxyConfig, // use this for this run's RequestQueue, but can be a named one, or if you // leave it empty, it will be placed on the remote run RQ targetRQ: requestQueue.queueId, // required sitemaps startUrls: [{ url: "http://example.com/sitemap1.xml", userData: { label: "DETAILS" // userData will passthrough } }, { url: "http://example.com/sitemap2.xml", }], // Provide your own transform callback to filter or alter the request before adding it to the queue transform: ((request) => { if (!request.url.includes('detail')) { return null; } request.userData.label = request.url.includes('/item/') ? 'DETAILS' : 'CATEGORY'; return request; }).toString() }, { waitSecs: 0 }); run.runId = runCall.id; run.actorId = runCall.actId; await Apify.setValue('SITEMAP-CALL', run); } await Apify.utils.waitForRunToFinish(run); const crawler = new Apify.PuppeteerCrawler({ requestQueue, // ready to use! //... }); await crawler.run(); }); ## License Apache 2.0

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Sitemap To Request Queue now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
pocesar
Pricing
Paid
Total Runs
217
Active Users
114
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support