
To reduce potential harm to Twitter users when re-publishing or citing tweets, it can be helpful to ask for explicit permission from the authors or to focus on tweets that have already been reasonably exposed to the public (e.g., tweets with many retweets or tweets from verified users), such that re-publishing the content will not unduly increase risk to the user. In this lesson, we will only be collecting tweets that were tweeted by verified users: "David Foster Wallace bro is:verified".Īs I discussed in “Users’ Data: Legal & Ethical Considerations,” collecting publicly available tweets is legal, but it still raises a lot of privacy concerns and ethical quandaries - particularly when you re-publish user’s data, as I am in this lesson. Matches Tweets that have Tweet-specific geolocation data provided by the Twitter user. i'm gonna tell my kinds that this was has:images Matches Tweets that contain a recognized URL to an image. Matches Tweets that contain a media object, such as a photo, GIF, or video, as determined by Twitter. Returns only Tweets whose authors are verified by Twitter. DFW bro is:reply David Foster Wallace bro is:quote Matches Tweets tagged with the specified location or Twitter place ID. Matches any Tweet from or to a specific user. Matches any Tweet containing a recognized hashtag #arthistory "so sweet and so cold" OR "plums in the icebox"ĭo NOT match a keyword or operator baldwin -alec, walt whitman -bridge Matches the exact phrase within the body of a Tweet.

Matches a keyword within the body of a Tweet. There are many other operators beyond those included in this table, and I recommend reading through Twitter’s entire web page on this subject.
Twitter bokeh international how to#
Here’s an excerpted table of search operators taken from Twitter’s documentation about how to build a search query. There are many other operators that we can add to a query, which would allow us to collect tweets only from specific Twitter users or locations, or to only collect tweets that meet certain conditions, such as containing an image or being authored by a verified Twitter user. The simplest kind of query is a keyword search, such as the phrase “David Foster Wallace bro,” which should return any tweet that contains all of these words in any order - twarc2 search "David Foster Wallace bro". To collect tweets from the Twitter API, we need to make queries, or requests for specific kinds of tweets - e.g., twarc2 search *query*. What is a “David Foster Wallace bro”? Was DFW himself a “bro”? Who is using this phrase, how often are they using it, and why? We’re going to track this phrase and explore the varied viewpoints in this cultural conversation by analyzing tweets that mention “David Foster Wallace bro.” But other people have defended Wallace’s fans and the author against such charges. The Twitter conversation that we’re going to explore in this lesson is related to “Wallace bros” - fans of the author David Foster Wallace who are often described as “bros” or, more pointedly, “David Foster Wallace bros.”įor example, in Slate in 2015, Molly Fischer argued that David Foster Wallace’s writing - most famously his novel Infinite Jest - tended to attract a fan base of chauvinistic and misogynistic young men. “David Foster Wallace, Beloved Author of Bros” …has become lit-bro shorthand…Make a passing reference to the “David Foster Wallace fanboy” and you can assume the reader knows whom you’re talking about. Make an Interactive Network Visualization with Bokeh


Tomotopy & Text Files (NYT Articles) - No Java required

Term-Frequency Inverse Document Frequency Users’ Data: Legal & Ethical ConsiderationsĪpplication Programming Interfaces (APIs) Data Collection (Web Scraping, APIs, Social Media)
