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.

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[]
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.

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

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
(object) => { return { author: object.author + " user", id: `${object.id}`, } }

This example will change the output in the following way;

{ "author": "dyhtgrew user" "id": "11482563" }

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 apidojo@hotmail.com. You name it, we get it.

Developer
Maintained by Community
Actor stats
  • 2 users
  • 68 runs
  • Modified about 19 hours ago

You might also like these Actors