Skip to content

Instantly share code, notes, and snippets.

@escribapetrus
Created May 24, 2020 10:44
import pandas as pd
from csv_manage import read_csv, write_csv
from poem import Poem
from tweeter import api as tweeter
df = pd.read_csv('poem_list.csv')
(author,title,link) = tuple(df.sample(1).iloc[0])
poem = Poem(author,title,link)
tweet = poem.get_tweet()
tweeter.update_status(tweet)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment