An API For Scraping Urban Dictionary
Abhimanyu Sharma, https://github.com/0xN1nja
GET
/api?word={word}
cURL
curl "https://urban-dictionary-api.0xN1nja.repl.co/api?word={word}"
Python (requests)
import requests
import json
word = "" # Enter A Word
res = requests.get(f"https://urban-dictionary-api.0xN1nja.repl.co/api?word={word}").content
res = json.loads(res)
print(res)
Node.js (axios)
const axios = require('axios');
const word = ""; // Enter A Word
axios.get(`https://urban-dictionary-api.0xN1nja.repl.co/api?word=${word}`)
.then(res=>console.log(res.data))
.catch(err=>console.log(err));
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.