Urbandictionary Scraper

Pay $1.00 for 1,000 results

Urbandictionary Scraper

Urbandictionary Scraper

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

from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [
        "https://www.urbandictionary.com/define.php?term=dude",
        "https://www.urbandictionary.com/define.php?term=nah",
    ],
    "keywords": [
        "afk",
        "lol",
    ],
    "customMapFunction": "(object) => { return {...object} }",
}

# Run the Actor and wait for it to finish
run = client.actor("apidojo/urbandictionary-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
Developer
Maintained by Community
Actor stats
  • 2 users
  • 72 runs
  • Modified about 11 hours ago

You might also like these Actors