AI Income LabJoin AI Income Lab ↗

Apify agent skills tutorial: scrape leads in Cursor

Jump to video chapters

Watch on YouTube ↗ Subscribe on YouTube ↗

By · · 12:57 · 3,795 views

Written guide: Apify agent skills setup in Cursor

Install the Apify agent skills globally with npm, add an Apify token to a .env file, and run them through OpenCode in Cursor to scrape AI startups in San Francisco and then pull their emails. The first Google Maps run returned no email addresses, so a second contact info scraper skill was needed.

Video summary

Apify tutorial + Claude Code skills for Google Maps scraping, TikTok/YouTube scrapers, and CSV lead lists.

The video covers 13 parts: Introduction: The Power of Apify + Claude Code, Overview of Apify Scrapers (Google Maps, TikTok, YouTube), Global Installation via Terminal (NPM), Choosing Your Skills (Lead Gen, Analytics, etc.), Setting Up a New Project in Cursor, Configuring the API Token and .env File, Live Demo: Scraping AI Startups in San Francisco, Monitoring Runs in the Apify Console, Reviewing the Scraped Startup CSV, Extracting Emails: Running the Contact Info Scraper Skill, Results: A Fully Populated Email Lead List, Claude Code vs. Cursor: Which IDE to Use?, and Final Tips for Linux Users and Outro.

What this video covers

What you build

A CSV lead list of AI startups in San Francisco from Google Maps, plus a second CSV with email addresses scraped from their websites.

Tools used

Compare pricing: Apify, OpenCode. Some ↗ links are affiliate links, so I may earn a commission or credit. See every tool I recommend →

Key steps

Not covered

Summary written from the video's transcript and chapters.

In this video

  1. 0:00 Introduction: The Power of Apify + Claude Code
  2. 0:42 Overview of Apify Scrapers (Google Maps, TikTok, YouTube)
  3. 1:21 Global Installation via Terminal (NPM)
  4. 2:01 Choosing Your Skills (Lead Gen, Analytics, etc.)
  5. 3:35 Setting Up a New Project in Cursor
  6. 5:02 Configuring the API Token and .env File
  7. 6:18 Live Demo: Scraping AI Startups in San Francisco
  8. 7:33 Monitoring Runs in the Apify Console
  9. 8:44 Reviewing the Scraped Startup CSV
  10. 9:29 Extracting Emails: Running the Contact Info Scraper Skill
  11. 11:01 Results: A Fully Populated Email Lead List
  12. 11:45 Claude Code vs. Cursor: Which IDE to Use?
  13. 12:30 Final Tips for Linux Users and Outro

Questions and answers

How do you install the Apify agent skills?

Run the npm command from the Apify agent skills GitHub repository in a terminal, select the skills you want, and choose the editor to install them for. The video installs all 12 skills globally for Cursor.

Do the Apify skills need an API token?

Yes. The lead generation skill failed with no token found until an .env file containing the Apify API token was added to the project.

Does the Google Maps scrape include email addresses?

No. The Google Maps results had company names and websites but no emails, so a contact info scraper skill was run on the websites to collect them.

Transcript

Hey there, welcome to the channel. In this video, I'm excited to share with you step by step how to integrate Apify agent skills, which is a powerful web scraping platform into both Claude Code and also Cursor. And in this tutorial, we're just going to build a simple example showing how to scrape leads using Google Maps and also extract emails from those websites, all using Apify Agent Skills. This video is actually sponsored by Apify.

So, if you want to click the link in the description below, you can get started completely for free. And then they also offer paid plans as well. I've been using Apify for a couple years now. It's one of the most powerful scrapers online. They've got integrations with all sorts of different apps, including Google Maps, Tik Tok, YouTube, Facebook, Instagram. The list goes on and on. There's literally thousands of apps that you can scrape using Apify.

Read the rest of the transcript

And let's go ahead and open up our console in amplify over here. And then we can actually just go ahead and install this skill using something like OpenCode. So if we want to install the skill, I'm just going to come over here to the GitHub repository. This is for amplify agent skills. And you're just going to scroll down and copy and paste this line right here using NodeJS package manager.

We're going to come over to the terminal because I just want to install this globally on my system. You can also do this using Claude Code or OpenCode over here in cursor as well. If you just want to clone the repository, you can do it from here, but I just want to install it globally. So, I'm just going to go ahead and enter in that command to grab the skills. And now it's just saying it needs to install. So, I'm going to hit yes.

And that's going to start installing the Amplify skills. So, as you can see here, we can go through and install all 12 of these skills. You're just going to want to hit spacebar and go through and install all of these. These are things for, you know, lead generation, content analytics, competitor analysis, uh, audience analytics, all sorts of skills built in here. And you can also take a look through all the skills over here as well. And you can read through what each one of them does.

So, this one just scrapes leads from multiple platforms and it shows how to set it up. Basically, we're going to have to create av file with the Amplify token and a few other things as well. And then you can also just install the individual skills if you want to. And it shows all of the different things that you get access to for each of these skills.

So, this just going to make it a lot easier versus going over here into the console, finding the actor, and running it manually. you can just do it directly through um your IDE. So now we're just going to hit enter. Um I want to use cursor so I'm just going to push enter and then we can go ahead and install that globally. I want to install it in my home directory. So I'm going to hit enter and sim link is fine.

And then we can proceed with the installation. You can see here these are all the skills that it is installing. So we're just going to go ahead and install that. And now the installation is complete. And it's also asking, do I want to install the find skill skill? It helps you your agent discover and suggest skills. So I'm going to say yes. So now it's cloned the repository. And it's done.

And then in order to actually run this, we're going to come over to cursor, which is where I installed it, and we're going to create a new project. So in this case, I'm just going to create a project. And we're going to create a new folder here. I'm just going to call it cursor under documents. Keep in mind I don't really use cursor all that much. So I'm just kind of figuring this out as I go along here. Okay.

So now what I'm going to do is I'm going to come over to the terminal. I'm just going to type in OpenCode. And I'm just going to ask it list all of the agent skills you have access to. And what that's going to do is just going to list all the skills including the Amplify skills that we just installed. So it's going to list all of them here. And then we should be able to run it. So you can see I've already installed one for Remotion.

And then there's all the Amplify skills. So I'm just going to say run amplify lead generation skill. Just go ahead and see if it can run the skill or if it will need an API token. I'm assuming it will need the API token which we're going to have to put in over here in cursor. Let's just see if it can run this real quick. So it's saying I'll help you generate leads using Amplify lead generation skill.

Let me start by checking the prerequisites and then guide you through the process. So as you can see I do need the ENV file which I'm going to need to set up. So says permission required. I'll say always allow. And this will allow it to read until OpenCode is restarted. So we're just going to confirm that. And it's saying no token found. It's not able to find thev file. So what I'm going to do is I'm going to come over here to cursor.

I'm just going to enter in my API key. I'm just going to enter in API token equals. We're just going to paste in this key. Now I'm going to delete this before I post the video so that nobody has access to it obviously. So if we want to actually run this I'm just going to say run Apify lead generation skill. See if it can run it now that I have included the appy token. So it's reading the skill.md file.

It's listing the amplify lead generation skill and planning the next moves. So it looks like it's calling the Google Places crawler right now, which is a good sign. So that means the Appy token is working. All you have to do is create this MV file and provide your Appy token. And now it's running Google Places. So we're just scraping leads from Google, but I haven't actually specified what leads I want to scrape.

But as you can see, it is now scraping uh coffee shops in looks like Seattle, Washington. And there's all of the coffee shops right here. So that includes opening hours, all the information that you would get from Google Maps. But in this case, I don't actually really want to run the Google Maps listing. It is pretty cool though that you can see that you could do this.

Um, so if I want to run Apify lead generation skill and find, let's say, AI startups in San Francisco and add them into CSV database, right? So that's just going to essentially do the same thing. It's going to scrape, I'm assuming, Google Maps. We'll see which uh skill that it uses. So here we go. It's using the Google Places once again. Just going to hit run. And as you can see, yeah, it's just running the skills directly within cursor over here.

And if you want to take a look at some of the other skills that you have access to or run these manually, you can do that through Apify as well. And we can come over to runs here. And you can see exactly what it's doing right here. So that's running the Google Maps scraper. And you can see all the leads that it's generating through here as well. So these are all startups, AI startups in San Francisco right here along with websites.

Uh doesn't look like it actually includes the email addresses, but we should be able to find those as well using another integration inside Amplify such as Apollo, which I think they've actually removed recently because I think people were abusing it a bit too much. But it looks like they do have a scraper here as well, which is a,000 emails. So $1 for a,000 emails, and that includes Apollo and also LinkedIn profiles as well. So we might be able to use this one.

Looks like it's asking for more permissions here. I'm just going to go ahead and approve that. And let's see if it if it can put this into a database. Looks like it did put it into a CSV database right here. 86,000 bytes, 86K right here. So, you can actually just go ahead and preview that right here. These are all AI startups in San Francisco. So, if you want to actually get these emails, um, run a skill to extract emails from the AI startups database.

So that should call one of its available skills which are over here. We can see for lead generation over here. If we take a look can also scrape uh Facebook groups, Google search, YouTube channels, all sorts of things, Instagram profiles, local businesses, which is the one that it's using now. We're just going to go ahead and approve that. And now it's going to be running the contact info scraper. And this will be pretty cool if we can actually get the email addresses from these websites.

So essentially, I think what it's doing is just going to these individual websites and it's scraping for the emails on the website. That's what this code is doing. And the really nice thing about this is it's doing everything with inside my IDE over here. You can also take a look at the JSON here as well. So, it's basically just feeding in all of these URLs and scraping for email addresses. Uh, there's a lot of other things that we can do here as well.

I'm just scratching the surface, but in this video, I just wanted to show what this is capable of. And keep in mind, I'm still kind of figuring this out as I go along myself. We've also got a lot of things for YouTube scrapers as well. If you want to scrape uh video data and metrics from YouTube, you can get transcripts. Uh, you could search Google search as well. You could search Booking.com reviews. The list goes on and on. There's so many different integrations through Apify.

And yeah, I highly recommend coming over here, creating your free account. And it starts at I think like 20 bucks a month, something like that. You can also see how much data usage you're running over here as well. I've only spent a dollar so far out of $55 with the scraping. So, we're going to go ahead and run this and let's see if it can actually get these email addresses. So, this is what it's done. And it put it into a CSV file over here.

And boom, there's all the email addresses right there. So, it just got all the email addresses and it put it into another CSV file over here. So, there's the list of all the URLs and it should have the emails in here as well. You can see how powerful this is. And if you actually use this for your own business, I think it's going to save you a ton of time going through each website, scraping leads or going to Apollo and doing it all manually.

This is just built directly into Apify. And they make it a lot easier with this GitHub over here, which you can just clone into your cursor account. Or you could also use claude code as well. So if you wanted to set this up in Claude Code, you would do the exact same thing. just come over here to like Visual Studio Code once Claude Code's installed and you would just enter in that same command in order to clone that repository into Claude Code over here as well.

So it just depends on what which one you want to use. I'm just getting started with cursor but I also really like Claude Code as well. So we can just go ahead and install that over here while cursor is running. And I'm on Linux so I really am very security conscious. Uh, I would much rather use something like this versus like OpenClaw, Moltbot, or any of those tools. And I'm pretty happy with Cursor.

If you want to get started with Cursor, you just come over here and you would just install it. You essentially just open up the terminal and then you can run it inside the terminal or obviously if you're on Mac, you would just get the executable. But for me, I'm on Linux, so I just download the Linux and then I install it over here. and then you get access to the complete uh code editor IDE. Hopefully you've enjoyed the video.

Please subscribe to the channel if you haven't already and I will see you in the next one. signing off.

Not ready to join? Get the weekly build notes: new guides and tested builds in one short email.

You may also like