Skip to content

Instantly share code, notes, and snippets.

@bachmeil
Created April 4, 2019 01:45
Show Gist options
  • Save bachmeil/2d6f1491a0c75edc687f8bd5756a4e7a to your computer and use it in GitHub Desktop.
Save bachmeil/2d6f1491a0c75edc687f8bd5756a4e7a to your computer and use it in GitHub Desktop.

Convert 25 tweets by @undercoverhist starting 2019-03-29 to latex format.

Requires getting a Twitter API key as described here.

R code:

library(twitteR)
library(rmarkdown)
setup_twitter_oauth(api key, api secret, access token, access secret) # Fill in values given by Twitter
tweets <- searchTwitter("(from:undercoverhist)", since="2019-03-21", until="2019-03-30")
output <- ""
for (tweet in tweets) {
	output <- paste0(output, "**", tweet$created, "**  \n", tweet$text, "\n\n")
}
cat(output, file="tweets.md")
pandoc_convert("tweets.md", to="latex", output="tweets.latex")
\textbf{2019-03-29 22:14:55}\\
@vipulvivekd @farmerrf ``renewed interest'', maybe. ``renewed support'',
we're not there yet
\textbf{2019-03-29 21:34:01}\\
@Shtirlets2 best wallpaper even
\textbf{2019-03-29 21:09:51}\\
@gregsasso I think we should petition so that they bring this type of
cover table of content back.
\textbf{2019-03-29 21:00:01}\\
Laffer citing Boulding on Bitcoin, 1970 https://t.co/rc6h0JuHsO
\textbf{2019-03-29 20:46:54}\\
Majestic January 1968 JPE issue
``Christ on macroeconomic models''
``Rottenberg on heroin'' https://t.co/i2eie5e1GN
\textbf{2019-03-29 20:43:46}\\
@jmorenocruz @gelbach A.W.E.S.O.M.E
\textbf{2019-03-29 20:42:49}\\
@albouy @usher\_andrew journalists resisting coverage of single papers
and focusing bodies of research on such and s\ldots{}
https://t.co/wSSzkq2t9o
\textbf{2019-03-29 20:41:02}\\
@albouy @usher\_andrew ego, but also coordination failures. My sense is
that the few stars acknowledging article mis\ldots{}
https://t.co/uvWJcdiHBC
\textbf{2019-03-29 20:27:40}\\
RT @AlexandreChirat: I find a nice interview with Samuelson and
Galbraith on American Capitalism (boom, cycle, inflation, corporations)
\#19\ldots{}
\textbf{2019-03-29 20:14:49}\\
RT @RanaForoohar: Lina Khan: `This isn't just about antitrust. It's
about values' https://t.co/6lm3Y7Zjax via @financialtimes @linamkhan
@o\ldots{}
\textbf{2019-03-29 19:42:12}\\
@maxime\_dt 2/2 how do I make sense of it? It's neither starting from
ends nor from means, it's about starting from\ldots{}
https://t.co/E7kc6vCrqK
\textbf{2019-03-29 19:40:13}\\
nice case of ``look, the others behave as badly as we do. Why should we
improve?''
\textbf{2019-03-29 19:38:31}\\
@maxime\_dt but there's more. spent some time prepping ``ideology''
lecture, which I realize is not so much abt findin\ldots{}
https://t.co/MGd8LkcUqk
\textbf{2019-03-29 19:30:16}\\
@gelbach Do you remember some date range? I'd love to put my hands on
such cover. I could make endless jokes-not-so-jokes in HET lectures!
\textbf{2019-03-29 19:28:42}\\
@danieletavani @farmerrf @ColoradoStateU awesome. Congrats for the fight
https://t.co/7ZlrjpHPHA
\textbf{2019-03-29 18:58:52}\\
These tweeted history of econ lectures shouldn't be framed as
``atypical.'' Several colleagues are teaching from same\ldots{}
https://t.co/GLSw2eqKeD
\textbf{2019-03-29 18:49:07}\\
@gelbach @steventberry @causalinf @Jabaluck @yudapearl @Mark\_Levels
@wrdcsc that would be Carl, right?
\textbf{2019-03-29 18:45:14}\\
RT @Undercoverhist: @farmerrf lack of history courses in econ curricula
is no result of lack of interest, or ignorance that solid history
o\ldots{}
\textbf{2019-03-29 18:45:00}\\
@farmerrf lack of history courses in econ curricula is no result of lack
of interest, or ignorance that solid histo\ldots{}
https://t.co/SC28wr9Hmt
\textbf{2019-03-29 18:39:06}\\
@farmerrf teaching great debates might be unusual, but drawing on great
histories of recent econ (GE, macro, game t\ldots{}
https://t.co/KbDBufXbZ7
\textbf{2019-03-29 18:32:51}\\
@Econ\_Marshall @CleoCZ it's a chicken-and-egg problem though. Is rising
prestige resulting in some crowding-out eff\ldots{}
https://t.co/gw11FIzpnz
\textbf{2019-03-29 18:30:14}\\
RT @irwincollier: Meet an economics Ph.D.~alumna of the University of
Chicago, Helen Fisher Hohman, 1928. Her dissertation beat out Simon
K\ldots{}
\textbf{2019-03-29 18:29:39}\\
@LawlorEconomics excerpts of Friedman 1948 and 1953. My interpretation
is that he says more than just "we can't sol\ldots{}
https://t.co/dA3m293VTE
\textbf{2019-03-29 18:22:59}\\
exhibit 1: https://t.co/sdkEwqnd95 exhibit 2: https://t.co/ZSUgL0W3Cq
exhibit 3: https://t.co/iGFt28TKt7
\textbf{2019-03-29 18:15:42}\\
RT @gelbach: @steventberry @causalinf @Jabaluck @yudapearl @Mark\_Levels
@Undercoverhist Back when JPE (I think) used to do print its
cover\ldots{}

2019-03-29 22:14:55
@vipulvivekd @farmerrf "renewed interest", maybe. "renewed support", we're not there yet

2019-03-29 21:34:01
@Shtirlets2 best wallpaper even

2019-03-29 21:09:51
@gregsasso I think we should petition so that they bring this type of cover table of content back.

2019-03-29 21:00:01
Laffer citing Boulding on Bitcoin, 1970 https://t.co/rc6h0JuHsO

2019-03-29 20:46:54
Majestic January 1968 JPE issue

"Christ on macroeconomic models"

"Rottenberg on heroin" https://t.co/i2eie5e1GN

2019-03-29 20:43:46
@jmorenocruz @gelbach A.W.E.S.O.M.E

2019-03-29 20:42:49
@albouy @usher_andrew journalists resisting coverage of single papers and focusing bodies of research on such and s… https://t.co/wSSzkq2t9o

2019-03-29 20:41:02
@albouy @usher_andrew ego, but also coordination failures. My sense is that the few stars acknowledging article mis… https://t.co/uvWJcdiHBC

2019-03-29 20:27:40
RT @AlexandreChirat: I find a nice interview with Samuelson and Galbraith on American Capitalism (boom, cycle, inflation, corporations) #19…

2019-03-29 20:14:49
RT @RanaForoohar: Lina Khan: ‘This isn’t just about antitrust. It’s about values’ https://t.co/6lm3Y7Zjax via @financialtimes @linamkhan @o…

2019-03-29 19:42:12
@maxime_dt 2/2 how do I make sense of it? It's neither starting from ends nor from means, it's about starting from… https://t.co/E7kc6vCrqK

2019-03-29 19:40:13
nice case of "look, the others behave as badly as we do. Why should we improve?"

2019-03-29 19:38:31
@maxime_dt but there's more. spent some time prepping "ideology" lecture, which I realize is not so much abt findin… https://t.co/MGd8LkcUqk

2019-03-29 19:30:16
@gelbach Do you remember some date range? I'd love to put my hands on such cover. I could make endless jokes-not-so-jokes in HET lectures!

2019-03-29 19:28:42
@danieletavani @farmerrf @ColoradoStateU awesome. Congrats for the fight https://t.co/7ZlrjpHPHA

2019-03-29 18:58:52
These tweeted history of econ lectures shouldn't be framed as "atypical." Several colleagues are teaching from same… https://t.co/GLSw2eqKeD

2019-03-29 18:49:07
@gelbach @steventberry @causalinf @Jabaluck @yudapearl @Mark_Levels @wrdcsc that would be Carl, right?

2019-03-29 18:45:14
RT @Undercoverhist: @farmerrf lack of history courses in econ curricula is no result of lack of interest, or ignorance that solid history o…

2019-03-29 18:45:00
@farmerrf lack of history courses in econ curricula is no result of lack of interest, or ignorance that solid histo… https://t.co/SC28wr9Hmt

2019-03-29 18:39:06
@farmerrf teaching great debates might be unusual, but drawing on great histories of recent econ (GE, macro, game t… https://t.co/KbDBufXbZ7

2019-03-29 18:32:51
@Econ_Marshall @CleoCZ it's a chicken-and-egg problem though. Is rising prestige resulting in some crowding-out eff… https://t.co/gw11FIzpnz

2019-03-29 18:30:14
RT @irwincollier: Meet an economics Ph.D. alumna of the University of Chicago, Helen Fisher Hohman, 1928. Her dissertation beat out Simon K…

2019-03-29 18:29:39
@LawlorEconomics excerpts of Friedman 1948 and 1953. My interpretation is that he says more than just "we can't sol… https://t.co/dA3m293VTE

2019-03-29 18:22:59
exhibit 1: https://t.co/sdkEwqnd95 exhibit 2: https://t.co/ZSUgL0W3Cq exhibit 3: https://t.co/iGFt28TKt7

2019-03-29 18:15:42
RT @gelbach: @steventberry @causalinf @Jabaluck @yudapearl @Mark_Levels @Undercoverhist Back when JPE (I think) used to do print its cover…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment