馃彲 Urbandictionary Scraper (Pay Per Result) avatar
馃彲 Urbandictionary Scraper (Pay Per Result)

Pay $1.00 for 1,000 results

View all Actors
馃彲 Urbandictionary Scraper (Pay Per Result)

馃彲 Urbandictionary Scraper (Pay Per Result)

apidojo/urbandictionary-scraper

Pay $1.00 for 1,000 results

Introducing the Urban Dictionary Scraper, your ultimate tool for diving into the world of contemporary slang, memes, and expressions! With this user-friendly and versatile scraper, you can effortlessly search for any keyword and retrieve a treasure trove of definitions.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "startUrls": [
11        "https://www.urbandictionary.com/define.php?term=dude",
12        "https://www.urbandictionary.com/define.php?term=nah"
13    ],
14    "keywords": [
15        "afk",
16        "lol"
17    ],
18    "maxItems": 1000,
19    "customMapFunction": (object) => { return {...object} }
20};
21
22(async () => {
23    // Run the Actor and wait for it to finish
24    const run = await client.actor("apidojo/urbandictionary-scraper").call(input);
25
26    // Fetch and print Actor results from the run's dataset (if any)
27    console.log('Results from dataset');
28    const { items } = await client.dataset(run.defaultDatasetId).listItems();
29    items.forEach((item) => {
30        console.dir(item);
31    });
32})();
Developer
Community logoMaintained by Community
Actor metrics
  • 1 monthly users
  • 100.0% runs succeeded
  • Modified about 2 hours ago

You might also like these Actors