Skip to content
Permalink
e6c5ba2328
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
20 lines (12 sloc) 411 Bytes
import unirest
import json
def norrisjokes(a):
response = unirest.get("https://webknox-jokes.p.rapidapi.com/jokes/search?category=Chuck+Norris&numJokes=5&minRating=5&keywords=kick%2C+hard",
headers={
"X-Mashape-Key": "ne3JX2VplDmshE0odz6LwA6mjASrp1KuHfxjsnM1r6ndmOCwOw",
"X-Mashape-Host": "webknox-jokes.p.rapidapi.com"
}
)
print(response.body())
return 1
norrisjokes(1)