馃彲 Urbandictionary Scraper (Pay Per Result) avatar
馃彲 Urbandictionary Scraper (Pay Per Result)
Try for free

Pay $1.00 for 1,000 results

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

馃彲 Urbandictionary Scraper (Pay Per Result)

apidojo/urbandictionary-scraper
Try for free

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.

Urban Dictionary Scraper

Urban Dictionary Scraper is an Apify actor for extracting definitions from from urbandictionary.com. It gives you access to the huge community based list of definitions for slang, meme, or many different things that is ongoing around the Web in structured form. It is build on top of Apify SDK and you can run it both on Apify platform and locally.

Input Parameters

FieldTypeDescriptionDefault value
startUrlsarrayUrban Dictionary full search URLs as a String Array[]
keywordsarrayList of keywords that you want to search on Urban Dictionary[]
maxItemsnumberMaximum number of items that you want to receive as outputInfinity
customMapFunctionstringFunction that takes each of the output rows as argument and returns data that will be mapped, changed formatting, of the each rows. More information in Custom map function

Compute Unit Consumption

The average consumption is 0.003 to 0.005 per 100 results. It is extremely fast and optimized for the public usage.

Output

Output is stored in a dataset. Each item is information about post related with a keyword.

1{
2	"definition": "[An abbreviation] that stands for 'laugh out loud' to you, but 'lots of [love'] for [your mom].",
3	"url": "http://lol.urbanup.com/11482563",
4	"numberOfThumbsUp": 5528,
5	"author": "dyhtgrew",
6	"word": "lol",
7	"id": 11482563,
8	"createdAt": "2017-04-26T02:41:29.898Z",
9	"example": "Mom: [Grandma] just [died]. LOL\r\nSon: Mom [what the fuck]?",
10	"numberOfThumbsDown": 714
11}

Custom map function

You can use this function to change the output of each of the rows that you will get from this actor. This function gets each of the rows on the output as an argument so you can change the formatting, pick which attributes you want to get as the output. The output from this function will be converted into the format you will return.

The return value of this function has to be an object!

You can return fields to achive 3 different things:

  • Add a new field - Return object with a field that is not in the default output
  • Change a field - Return an existing field with a new value
  • Remove a field - Return an existing field with a value undefined
1(object) => {
2    return {
3        author: object.author + " user",
4        id: `${object.id}`,
5    }
6}

This example will change the output in the following way;

1{
2  "author": "dyhtgrew user"
3  "id": "11482563"
4}

Urban Dictionary Scraper Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any language (Python, PHP, Node JS/NPM). See the FAQ or our API reference to learn more about getting results from this Urban Dictionary actor.

Contact

If you need any sort of support, please send an email to apidojo10@gmail.com. You name it, we get it.

馃埓 Other Actors you might want to check

Developer
Maintained by Community
Actor metrics
  • 1 monthly users
  • 98.1% runs succeeded
  • days response time
  • Created in Nov 2023
  • Modified about 20 hours ago