Added Header information to requests
This commit is contained in:
parent
f150d9bc97
commit
f27d195964
2 changed files with 9 additions and 2 deletions
|
@ -3,6 +3,10 @@ import urllib.parse
|
|||
import json
|
||||
|
||||
TEMPLATE_URL = "https://jisho.org/api/v1/search/words?keyword={0}"
|
||||
HEADER = {
|
||||
"User-Agent": "Jisho Bot",
|
||||
"From": "https://github.com/Lauchmelder23/JishoBot"
|
||||
}
|
||||
|
||||
class JishoSenses():
|
||||
def __init__(self, sense):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue