Sitemap To Request Queue
by pocesar
Download sitemap XMLs and put them in a RequestQueue
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
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- 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
Categories
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 TrialActor Information
- Developer
- pocesar
- Pricing
- Paid
- Total Runs
- 217
- Active Users
- 114
Related Actors
Web Scraper
by apify
Cheerio Scraper
by apify
Website Content Crawler
by apify
Legacy PhantomJS Crawler
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support