Questions tagged [twitter]

Twitter is an online social networking service and microblogging service that enables its users to send and read text-based messages of up to 140 characters, known as "tweets". Use this tag for questions which may arise when developing FOR Twitter. This tag is NOT for support questions about using the Twitter website or the official Twitter app.

Filter by
Sorted by
Tagged with
4
votes
1answer
55 views

Twitter bot to post game of thrones memes

I created a twitter bot, that can parse a subreddit and post content from there to Twitter. I am running this bot using a cron-job, which starts the app using ...
4
votes
0answers
66 views

Python server that performs sentiment analysis on Twitter data

I have a fully working Python server that utilizes Tornado, asyncio, websockets and tweepy(Twitter's Streaming api). The main point of this server is to receive a query from the user, call upon tweepy ...
1
vote
0answers
108 views

Twitter scraper using tweepy

I wrote a Twitter scraper using the tweepy so I can scrape user information and tweets. Given that the free API doesn't let me get the number of messages per tweet, I had to rely on BeautifulSoup to ...
2
votes
1answer
57 views

twitter data mining script in python

I have written a simple script that searches twitter for keywords and saves them to a csv file if they contain those words. It can be found on my github here. How can I improve this code to generally ...
1
vote
0answers
73 views

Making multiple HTTP requests to Twitter

I need to make multiple http requests very fast. I've currently use this method. ...
3
votes
2answers
55 views

Utility functions for processing tweets or texts

I have 4 functions that process texts or tweepy.models.Status object (this object stores text information, author information, retweets & likes information of a ...
3
votes
0answers
256 views

Time distribution of Twitter data

The tweepy.models.Status class creates a 'tweet' object, it has attribute .created_at which is the posting time of the tweet in ...
1
vote
1answer
112 views

Models for analysing Twitter data (*which based on tweepy package)

I have three modules here models.py, functionals.py, and adjustment.py. These three may be ...
5
votes
0answers
89 views

ffmpeg shell script to squeeze videos for Twitter

Here's a pretty rookie attempt at creating a shell script to squeeze videos into Twitter's 140s limitation: ...
2
votes
0answers
33 views

collecting.py module for working with Tweepy

I have a module collection.py that functions as a tool to collect tweets using tweepy. It has two classes : ...
12
votes
1answer
716 views

Live-streaming tweets and plot its sentimental value in colors on a world map

I want to have someone reviewing and helping me get some good ideas in how to improve my current project. All information about the project is in the following github link. I would also appreciate ...
4
votes
1answer
815 views

Twitter data mining project

I've written this simple code, that is possible to find on my github profile (it simply downloads some twitter data and store in an excel file). It is one of my first experiments of using OOP in ...
2
votes
0answers
136 views

Cluster tweet texts

I am using using the following code to cluster tweet texts. The input is a dictionary containing tweet-id and tweet text as key value pairs. Example: ...
2
votes
1answer
1k views

how to classify tweets in python based on handful of domains [closed]

I am currently working on a project that classifies tweets based on certain categories of information they belong to (7 given categories for his project). For example, a tweet with the keywords "I ...
1
vote
1answer
44 views

TweetResolver class, to be used in a graphql project

This is my module TweetResolver (tweet-resolver.js) : ...
3
votes
1answer
70 views

Interpreting tweets about football

I am trying to process the football tweets and extract information like goals, cards, corners, player name, team name. I write the code which works, but I may be missing some better python ...
2
votes
1answer
550 views

Rails5/Devise/Omniauth (Multiple Providers)

I spent the better part of the last two days getting this to work, but it finally is working, but it feels extremely redundant. I am following a belongs_to method ...
62
votes
4answers
10k views

Send a tweet to ISP when internet speed drops

I have written an app in Python 3 which monitors internet speed and will send a tweet to an ISP when the speed drops too low. The app has a config file where the ISP and target speeds can be ...
2
votes
1answer
49 views

Calculate Twitter Follower Changes Over Time

I have a code that grabs quickly the twitter followers for 12 different users. After appending to a Pandas DataFrame, the data is compared to the same file pulled ...
4
votes
1answer
159 views

Displaying tweet from Twitter API using TextBlock Inlines

I'm fetching tweets from the Twitter API and display them in a TextBlock using multiple Inline elements so that I can highlight (...
3
votes
1answer
224 views

Parser for gleaning data from twitter

I've written a script in python to parse the name, tweets, following and follower of those people available in view all section in my profile page of twitter. My scraper is able to parse those ...
3
votes
1answer
901 views

Improving Twitter JSON parser for big data set

I have the following fully working code that imports JSON files, parses the tweets contained in JSONs, records them in a table in a data frame. Considering that per run I currently analyze 1,400 ...
4
votes
1answer
41 views

Ruby Twitter Search by punctuations

With twitter search the punctuation and special characters will be considered part of the term you're searching for, so searching for '#twitter!' will return '#twitter!', "twitter?', '#twitter', etc. ...
2
votes
1answer
59 views

Using node bin/www with twits

I use the following code which is working as expected, but I want to use it in production. I'm not sure that this is clean code since I'm new to node.js. It would be great if I can get some example ...
7
votes
2answers
990 views

Twitter streamer that stores data in mongodb and emails errors

Here is a Python script that streams Twitter either with a keyword or within a bounded geographic area. Errors are emailed to my Gmail and the tweets are stored locally in MongoDB. Please let me know ...
4
votes
3answers
68 views

Getting the Twitter account from various input formats

I have an input for users to enter a Twitter account in any different way and I want to extract the user account. For example: ...
2
votes
2answers
525 views

PHP create JSON file from Twitter API

I've been reading more on PHP JSON and APIs I wanted to play around and pull a user's tweets so I wrote a function that requires the TwitterAPIExchange wrapper. The code: ...
2
votes
1answer
2k views

Connect to streaming Twitter API, parse tweets, and write to CSV in real-time

I have been using Tweeepy to connect to the Twitter Streaming API to collect tweets, parse that data, and then write select fields to a CSV file. Based on some examples that I found, I put together ...
4
votes
1answer
80 views

A Twitter bot that fetches Forecast.io data and tweets out the current weather with text and emojis

This is my first attempt at creating a Ruby script. I set up a Cron job to run this script every hour. I'm requesting constructive critiques and suggestions for making this better. Sidenote: I've ...
1
vote
0answers
64 views

Template for web pages using social plugins

I created a simple template for web pages that uses social plugins. The template consists of the html/php with jquery, and the necessary javascript to enable and use social plugins. The javascript ...
2
votes
0answers
55 views

Timeline request function for Twitter bot

I'm writing a Twitter™ bot for the Retrocomputing Stack Exchange site using JavaScript. To ensure that it doesn't tweet about the same question twice in a row, I request the account's timeline. ...
2
votes
1answer
76 views

Text cutting tools for Twitter

A few days ago I wanted to build a tools to cut a long text into one hundred-letters strings with the number of the tweets and which part of the tweets the tweet belongs to. I tried to have a tweet ...
1
vote
1answer
664 views

Twitter Bot to periodically post tweets

This is a bot for Twitter where you can upload an excel file with text in as many rows as you want but in a single column and it posts every row as a tweet every certain time. It stores the ...
1
vote
1answer
188 views

Mini Twitter (in memory, single threaded)

I am new to Java and would like to know whether my program is idiomatic. Please help me write idiomatic, terse code. My solution is functionally correct. Design a simplified version of Twitter ...
4
votes
1answer
127 views

Computing the in-degree of a tweet graph

This was my entry for a recent coding challenge for computing the in-degree of a tweet graph (the competition is over). The requirement was to compute the in-degree of a graph made from unique hash ...
2
votes
1answer
2k views

Script that retrieves trending topics from Twitter

The following code fetches trending topics from Twitter's API using a WOEID. It caches the response, loading from this cache the next time if its relatively fresh (generated within the last 15 minutes)...
7
votes
2answers
116 views

CLI Twitter client in Python

Here is a simple client for Wwitter that I wrote based on the twitter library in Python. The aim is to be able to read the feeds from different twitter accounts ...
0
votes
1answer
37 views

Read Twitter direct messages and check messages for links

I'm learning Clojure and I'm doing a little thing that reads direct messages from Twitter using twitter-api wrapper. The code doing that is below. ...
1
vote
0answers
1k views

Sentiment analysis on tweets in MongoDB

What i have done here is used 2 scripts in which from my main file I am using streaming api for particular handles and that data being directly pushed to ...
1
vote
0answers
774 views

Mobile app backend using Gin and Gorm ORM

I'm developing backend for my mobile app by using gin-gonic and gorm ORM (mysql). But I'm not sure api and db handle huge amount requests if clients increased. for example I'm using my db struct as ...
4
votes
1answer
354 views

Read Twitter users from a text file

I have this code for reading Twitter users from a text file represented by integers in the format "int (space) int", where the first int is the ID of the user doing ...
4
votes
2answers
130 views

Tweeting NASA's Astronomy Pic of the Day

I want to know how I can make this old code faster, cleaner and compact. It may look like bad code because I did it when I first started with Python. ...
5
votes
3answers
15k views

Get all followers and friends of a Twitter user

I'm trying to find my bug or any potential bottleneck that cause my program to be really slow. The script is to get all the followers and friends and save that in MongoDB. ...
-1
votes
1answer
328 views

The mood of the nation - Twitter trend

This assignment is taken from Berkeley's CS61A page here. Introduction In this project, you will develop a geographic visualization of twitter data across the USA. You will need to use ...
5
votes
2answers
136 views

The Geometry of Maps - Twitter Trend

Below assignment is taken from here. Introduction In this project, you will develop a geographic visualization of twitter data across the USA. You will need to use dictionaries, lists, and ...
5
votes
1answer
453 views

Assigning sentiment to each tweet - Twitter trend

Below assignment is taken from here. Introduction In this project, you will develop a geographic visualization of twitter data across the USA. You will need to use dictionaries, lists, and ...
3
votes
1answer
66 views

Tweeting statistics on shared links

I tend to be rather prolific in my sharing of things I find online. I'm interested in tracking my own habits to make them more effective. Therefore, I submit the above to be critiqued by the lot of ...
4
votes
2answers
878 views

Extracting a number from provided URLs inside a text file

I need to extract a ID (int number) from a Url. Example: http://www.example.com/foo/bar/12345 For this I wrote 4 methods where the first one ...
1
vote
1answer
87 views

Populate the database with new tweet data from the json_cache table

I'm really a newbie with code, and I wish to prepare all my statements to avoid SQL injection. I have searched a lot on the internet, but this wrapper/API doesn't look anything like the examples given....
8
votes
1answer
207 views

Importing someone's Twitter feed

I used some Java code to work out how often MPs and Senators cited their sources in tweets. The results are at here and the GitHub for the whole project is here, and the Java code I use to download ...