Skip to content

Instantly share code, notes, and snippets.

View purplepinapples's full-sized avatar
🦎
I lack the necessary information peepoDetective

purplepinapples

🦎
I lack the necessary information peepoDetective
View GitHub Profile
@purplepinapples
purplepinapples / anilist_api_example.py
Created January 21, 2019 08:32
Use Anilist API to get an AniList entry from a MAL id
#!/usr/bin/env python3
import requests
query = '''query($id: Int, $type: MediaType){Media(idMal: $id, type: $type){siteUrl}}'''
variables = {
'id': 30831,
'type': "ANIME"