This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nltk | |
from nltk.corpus import words | |
class Gear: | |
def __init__(self, word, direction): | |
# letters on the teeth, assuming the first character in the string is the initial gear setting | |
# and you read the letters in a clockwise sequence | |
self.word = word | |
# whether the gear rotates anti-clockwise (1) or clockwise (-1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Takes in a given MAL export file and generates a list of movies | |
in .csv format supported by LetterBoxd | |
""" | |
import xmltodict | |
import json | |
import pandas as pd | |
allowed_types = ["Movie", "OVA"] |