NaNoGenMo / 2019

National Novel Generation Month, 2019 edition.
98 stars 5 forks source link

Ducks: The Diary - completed #42

Open duck-master opened 4 years ago

duck-master commented 4 years ago

Hi! I'm new to GitHub, but I've been coding for some time. (Also, possibly the youngest participant here, but I can't say for sure as I don't know about the ages of everyone else.)

As I've been thinking about this for quite some time already, I've decided to follow this idea that incorporates my favorite animal, which (as you may have guessed) is the duck. It will involve scraping some Tweets containing the word "duck", Markov chain-ing the dataset into oblivion, and formatting the result as a diary.

(My other idea was to use machine learning and a handful of other tricks to improve the interestingness and decrease the repetitiveness of https://github.com/dariusk/NaNoGenMo/issues/2. However, neural nets are apparently really difficult to work with, so I'm putting this on hold.)

duck-master commented 4 years ago

Eureka: I've scraped my first tweets! Now all I need to do is to automate doing that a bunch of times. See picture.

Screen Shot 2019-11-14 at 12 13 38 AM
duck-master commented 4 years ago

I changed the type of the project because Twitter was doing rate-limiting thingies. Now I'm using a fixed corpus, which is the Russian troll tweet database available at http://nodeassets.nbcnews.com/russian-twitter-trolls/tweets.csv, and using markovify to do the hard work of Markov chaining for me. The repo is at https://github.com/duck-master/NaNoGenMo2019.

Here's a sample from the beginning:

===Friday, 1 November 2019=== RT USA v Japan: Rugby World Cup 2015 – live! via RT Listen to EP 11 here. === Saturday, 2 November 2019 ===

RT w/ truffle aioli, duck bacon, balsamic caramelized onions, smoked olive oil.… RT Clinton should be on the Thin Blue Line in our army at Act today. htt… RT Meet Jedidah C. Isher, Ph.D.: the first black president. RT Did Trump just to duck lips RT If ever there were 1,000s of American blacks but here is naked here RT get my ducks in a row. ASSANGE: I Live In this video, we go over the victim. Big brother has no place like being in the form of expressionist dance RT Donald Trump upstages Barack Obama . . inadvertently hijacks lame duck’s farewell speech! RT Girls doing duck lips RT to duck. RT Why Haitians are urging people not run their lives doing their job! It's what Obama does RT Madonna tweeted then deleted. RT every selfie must have a duck help me RT to duck. RT Probably time, she's starting to realize it RT Lame duck Obama’s mad scramble: Whatever happened to leaving office gracefully? RT Donald Trump upstages Barack Obama . . inadvertently hijacks lame duck’s farewell speech! RT Curry duck and cover?

=== Sunday, 3 November 2019 ===

RT I had sex was in 2004. Republicans tell Trump to appear on ballot for Hillary is only one Trump. RT Trump and the dangers for academics of looking thick & angry on RT Grassroots opposition builds to Including RAWA in lame duck President but the GOP-led Congress is keeping his sht going. RT Michelle and I extend our deepest condolences to the USA.… RT Girls doing duck lips in their photos RT Whew! Do not let the Broncos win. RT Deepening Mystery of the unrelated victims every time. RT the lucky ducks who have a duck help me I kissed a duck _* RT get my ducks in a row.

=== Monday, 4 November 2019 ===

RT THAT SHE'S LYING - Hillary Clinton Exposed, Movie She Banned From Theaters Full via Is EU going to do poorly, Mr. President, I know I have more respect for Putin than our own lame duck spending bill RT Anyone else right now would be a pretty girl. RT She looks more like Trump exploded to a computer to read… RT to duck.

=== Tuesday, 5 November 2019 ===

Nuff said RT BREAKING: New Emails Tie Chelsea Clinton being groomed to run for President and wins. RT By pretending to be a lame duck spending bill RT Curry duck and cover? RT Liberals blam Russia... so do I, will not help out #SurvivalG… RT get my ducks in a row. RT Minority undergrads interested in science journalism: Apply for this witch ..no no no 😡😡😡😡😡 RT to duck. Who are you letting in those who need govt subsidies=20% GOP. RT the long, slow, painful recovery from that location years ago RT Hillary Talks About Binge Drinking Vodka with John McCain? Be the type of person you are complicit. RT Want to know as Bill Cosby to happy hour. There have been waiting to take him out of… RT that rabbit breaks into my duck enclosure. Yep! https://t.co/bBbrh7Adn6 @AppSame RT Sarah Palin ➠ Takes On The Plantation RT I should duck and cover? RT Did Trump just to duck lips in their photos get my ducks in a row. Then start to talk about baby killing.