Questions tagged [twitter]

Twitter is a platform for microblogging, offering users the opportunity to share concise 'Tweets' containing up to 280 characters. Furthermore, these messages can be effortlessly posted using its application programming interface (API).

Getting the Tweets of a Twitter-validated user using node.js

I'm struggling with extracting Tweets from a verified user and could use some assistance. I know it's a broad question, but here's the situation: https://github.com/ttezel/twit provides a way to access tweets from any Twitter account. Howev ...

What is the method to utilize tweepy to search for tweets within a specific time frame?

I am trying to search for tweets that include a specific keyword between two other tweets. Below is the code I have been using: import tweepy CONSUMER_KEY = '...' CONSUMER_SECRET = '...' ACCESS_KEY = '...' ACCESS_SECRET = ...

Using MATLAB's jsonLab for parsing a JSON data structure

I am facing an issue while trying to parse a JSON object into a cell array in MATLAB. The error I encounter when parsing the filename is... `Error using loadjson>error_pos (line 431) JSONparser:invalidFormat: String starting with " expected at position 18 ...

Issue encountered with the ntwitter library in node.js

Currently, I am in the process of developing a Twitter streaming application using node.js along with the ntwitter module. Below is my code snippet: var app = require('express').createServer(), twitter=require('ntwitter'); app.listen( ...

Adjusting the dimensions of a Twitter widget to fit the screen size

My website is designed to resize based on screen size, but I encountered an issue when adding a Twitter widget. Despite setting the attribute width:'auto', the widget did not resize properly. Below is the code for the widget: <script charset="utf-8" sr ...

Android encountered an issue when trying to interpret the Twitter JSON response

Trying to utilize Twitter's Get users/lookup feature to retrieve user information has resulted in an error when parsing the response JSON file. The request URI used is: "https://api.twitter.com/1/users/lookup.json?screen_name=nba". Below is the code i ...

PHP Array Element Output

After making a call to the Twitter API, I have received an Array of data containing the "Top 10 Trending" items. However, I am facing difficulty in printing out the individual elements such as names. Below is the code snippet that I have been using to disp ...

Is there a way to position the twitter embed at the center of a webpage?

I am attempting to embed a Twitter video and twit in such a manner that they are perfectly centered on the page and also take up the entire width of the container (my-container). Here is the HTML code that I currently have: <div class="my-container"&g ...

The embedded Twitter widget in the Angular 2+ app is visible only upon initial page load

After implementing the built-in function from Twitter docs into ngAfterViewInit function, my app works flawlessly. However, I encountered an issue where the widget disappears when switching routes. Here is the code that only functions on the initial page ...

Using the Twit package on the client side: a step-by-step guide

I have been utilizing the Twit package for searching tweets. After executing the js file in the console, I am able to see the tweets but when trying to use them on my webpage, an error 'Uncaught ReferenceError: require is not defined' pops up. The reason f ...

The source 'http://localhost:3000' is not authorized to access the Twitter API

I am working on a web application that utilizes the Twitter API REST. On one of my pages, I have a list of Twitter accounts and a button to add a new account. When this button is clicked, it triggers a function in the Angular controller: // Function to ...

The Twitter node reply script appears to be malfunctioning and does not effectively send replies

I have a Twitter script that is currently set up to tweet the selected user once they tweet, but it posts the reply as a new standalone tweet instead of replying directly underneath the original tweet. How can I modify it to actually reply to the user's tw ...

Initiating an AJAX call to the Twitter API 1.1 search using jQuery

Check out this easy example of accessing Twitter's search API to retrieve tweets associated with a hashtag that is known for having a lot of activity, like #fml. I think I am using the application-only authentication properly according to this guide: (lo ...

What is the process for generating an oauthSignature?

I'm interested in using the Twitter API and I need to utilize some GET and POST methods. Fortunately, I have all the necessary keys such as consumer Key, Consumer Secret, Access Token, and Token Secret. However, I am facing an issue with generating oauth ...

Tweepy.errors.NotFound: 404 User Not Found - Unable to locate user profile

Attempting to create a python-based Twitter bot using tweepy, encountering an error when executing the following code: tweepy.errors.NotFound: 404 Not Found 50 - User not found. The provided code snippet is as follows: import tweepy import logging from c ...

Is there a way to achieve horizontal alignment for the Twitter and Facebook buttons on my page?

By utilizing the html code provided, I successfully incorporated Twitter and Facebook "Like" buttons into my website. Initially, they were stacked vertically, which resulted in excessive use of vertical space. To optimize space usage, I decided to align th ...

Navigating through the endless scroll behavior in Twitter using CasperJS (PhantomJS)

Having trouble with infinite scrolling on Twitter, as the page is not loading new content even when scrolling to the bottom. To test if any content loads at all, I have used the following code snippet: casper.open('https://twitter.com/<account>', f ...

Need help fixing a corrupted JSON file that contains escaped single and double quotes?

Challenge I am faced with a sizable JSON file (~700,000 lines, 1.2GB in size) that contains Twitter data which needs preprocessing for both data and network analysis purposes. While collecting the data, an error occurred: instead of using " as a separator ...

Exploring the magic of Node JS and integrating it with Twitter OAuth

I am new to working with Node JS and attempting to connect to Twitter using it. I have a JavaScript file located in the E:/ directory, but I'm unsure whether I should create a module folder or not with the provided code snippet. var express = require( ...

Nested navigation in Bootstrap

I am currently working on creating a multilevel menu using Twitter Bootstrap. Check out the code here Below is the snippet of HTML code: <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> ...

Typeahead.js is a powerful tool offered by Twitter that allows for easy auto-completion

I am currently working on a program that has the capability to search for specific university courses based on certain parameters. Within my large JSON object, there are 1360 objects, each consisting of around 20-30 parameters. However, I am only intereste ...

Using Tweepy to pull tweets from Twitter

Upon successfully adding tweets to my csv file, I noticed that the tweets were truncated and had a new text in place where they were cut off. For example, an original tweet might look something like this: Career in Risk Management Some of the programs an ...

Mastering Tweepy and Twitter API for effective social media management

Currently, I am working on understanding the Twitter API using Python. Here is the code I have written: import tweepy consumer_key = "Consumer Key" consumer_secret = "Consumer Secret" access_token = "Access Token" access_tok ...

Personalizing the Twitter Embedded Timeline

I am curious about how much customization options are available for the Embedded Timeline. I searched through the documentation but still have some unanswered questions - maybe I missed something. My goal is to initially display only one tweet and then ha ...

Python code to extract hashtags from a given text using regular expressions

As I analyze tweets gathered during the election, I am in need of a method to extract hashtags from tweet text while considering punctuation, non-unicode characters, and more, all while ensuring that the hashtags remain intact in the final list. For insta ...

The connection with Socket.io was unsuccessful: WebSocket closed before the connection could be established

The Problem Everything runs smoothly on my Twitter streaming app with Socket.io when accessing the site using the IP address and port. However, a live streaming error occurs when trying to access it through the domain name. ...

What causes the appearance of a Unicode error message when implementing an error handler to disregard any characters outside the Unicode range returned by the Twitter API in Python?

Welcome, fellow fans: I've been working on debugging a program that uses the twitter-api to search for specific tweets within a given radius and then saves them to a csv file. Everything seems to be functioning smoothly...but every now and then, an error ...

How to effectively utilize the Twitter API with C# - a comprehensive guide

Seeking guidance on utilizing the Twitter API with C#. Currently struggling to find relevant information. ...

Guide on how to retrieve Twitter Username and Profile Photo through the Twit NPM Package

Utilizing the twit npm package to retrieve the Authenticated Twitter Username and Profile Image, here is the code I am using: const Twit = require('twit'); let T = new Twit({ consumer_key: 'xxx', ...

Display emojis in tweet text using the following format: "ud83dude4c" with Tweepy

Questioning My Streaming Data Code As I stream data using tweepy, I am encountering an issue with the output. The results appear as follows: Tweet Contents: RT @ChickSoPretty: Zendaya tho ud83dude4c https:.... The problem arises when I attempt to extr ...

What causes the tweets' IDs to be altered by axios when parsing the response from the Twitter search API?

I am currently utilizing axios to send a GET request to the Twitter search API in order to fetch recent tweets that utilize a specific hashtag. To begin with, I ran tests on the twitter search API via Postman and noticed that the id and id_str tweet statu ...

What process allows for this Twitter API response to be converted into HTML format automatically?

It is common knowledge that Twitter operates in an API-centric manner, meaning all Twitter apps retrieve their data through the API. Upon accessing (or .xml for those who prefer), a JSON formatted result with plaintext content and no additional formattin ...

What is the process for obtaining tweet IDs (since_id, max_id) using tweepy in Python?

Can anyone help me figure out a way to retrieve tweet IDs so I can monitor which tweets have been shown in the user's timeline within my python application that utilizes tweepy? I've been struggling to find a method to extract and track tweet ID ...

Discover a PHP script that provides the next date when your Twitter followers joined the platform

To visualize the growth of my Twitter followers, I am looking to create a line chart. Currently, I have successfully implemented the code snippet below to list all the details of my followers: $parameters = array('include_user_entities' => true); $resp ...

Is it possible to replace or update the CONSUMER_KEY and CONSUMER_SECRET values in any way?

Currently, I am utilizing Laravel along with the thujohn/twitter package. My goal is to have users provide their own CONSUMER_KEY and CONSUMER_SECRET upon registration. This information will be used for posting tweets, favoriting tweets, etc. The issue is ...

Error: The function 'process_or_store' has not been declared in the Python code

After running the code, I encountered an error message that reads: NameError: name 'process_or_store' is not defined, I have attempted all the suggested solutions without success. How can I resolve this error message? import tweepy import js ...

Convert a Twitter Direct Message Link by changing the `<button>` tag to an `<a>` tag

When you log into Twitter and have Direct Message enabled, a "Send Message" button will appear. Can someone please provide the URL for sending a DM to a specific user? I tried looking at the code but I could use some assistance. Any thoughts? Thank you in ...

"Exploring the possibilities of integrating the Twitter API with

Currently, I am attempting to access my most recent tweet from Twitter using https://github.com/jdub/node-twitter I am interested in setting a variable, modifying that variable within a function, and then utilizing it again outside of said function. Is th ...

Utilizing Twitter API authentication to prevent hitting rate limits

Currently, I am implementing the Twitter API to showcase the most recent tweets from 4 distinct users on my webpage. It seems that once a certain number of calls are made, an error message appears stating "NetworkError: 400 Bad Request" and prevents the tw ...

Is it possible to load a Twitter widget from dynamically loaded HTML using AJAX?

I've been attempting to implement a standard Twitter search widget directly from the Twitter website: <script src="http://widgets.twimg.com/j/2/widget.js"></script> <script> new TWTR.Widget({ version: 2, type: 'search', search: '$A ...

What is the process for sending a Twitter OAuth Echo verification request call?

I have been trying to implement OAuth Echo verification using a npm package for Twitter user authentication. Here is the GitHub repository of the package I am using: https://github.com/ciaranj/node-oauth Can anyone provide me with an example of how to suc ...

Guide to programmatically importing a JSON file into MATLAB?

I need help loading data from a JSON file into MATLAB with comma delimiters. The data format looks like this: {"created_at": "Mon Oct 27 20:35:47 +0000 2014", "tweet": "Silver Finished Up, Gold, Copper, Crude Oil, Nat Gas Down - Live Trading News http://t ...

What are some effective strategies for obtaining over 100 unique records per day per query with Twitter's standard API?

I've been attempting to download a list of Tweets using the standard API, but I keep getting the same results every time. For example, here's my request: ApiSearch = api.search(q="#immigration", lang="en", result_type="mixed", count=100, until=u ...

What is the most effective method for incorporating CSS using Javascript to target a specific aria-label attribute?

Is there a way to add a CSS property to a specific tag with a particular aria-label on document load? My goal is to change the flex order of a section to 2. I need help using JavaScript to target the aria-label 'block 1' so I can set the order to 2 with f ...

Using Twitter upload and update_with_media API in conjunction with curl

Looking to share a photo URL on Twitter? Check out the code snippet below: curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ci, CURLOPT_URL, 'ht ...

Iterating Through an Array using Foreach Loop in PHP after using json_decode

I am having some issues with a foreach loop that I'm trying to run through an array. Specifically, I keep coming across the error message "Undefined index: text". Here is the code snippet in question: $tweets = json_decode($response,true); foreach ($twee ...

Stay connected with AJAX's latest updates on Twitter with just 13 bytes

Twitter sends a POST request of only 13 bytes when someone follows an account. This small amount of information helps to reduce latency and server load, providing advantages for web developers. However, removing unnecessary cookies and extra information f ...

The error occurs when Facebook and Twitter iframes are attempting to access and set 'document.domain'

When attempting to add Tweet and Facebook Like buttons to the project I'm working on, everything appears to be functioning properly. However, upon clicking the buttons, a JavaScript error occurs: Unsafe JavaScript attempt to access frame with URL htt ...

Looking for a Python library that supports proxy for Twitter Streaming API?

Anyone know of a Python library for the Twitter Streaming API that supports proxies? I like tweepy, but haven't found a way to use an HTTP proxy. Any suggestions? ...

How can Tweepy be utilized to extract the integer count and incorporate it?

Hope all is well with everyone here. My apologies if this question has been addressed previously, but I am currently working on the following task. cursor = tweepy.Cursor( api.search_tweets, q = '"Hello"', lang = 'en', result_type ...

Leveraging a pre-trained Word2Vec model for conducting sentiment analysis

I'm currently using a pre-trained Word2Vec model designed for processing tweets to generate vectors for individual words. You can find more information about the software here. My plan is to calculate the average of these vectors and utilize a classifier t ...

Mastering the Twitter npm package: the ultimate guide to using multiple query parameters

After researching a post on Twitter Search API capabilities, I discovered that it is possible to exclude certain types of tweets such as retweets or ones that contain links. You can find the original post here. How can this functionality be implemented us ...

Encountering problems with the python and selenium code I used to create my Twitter scraper

I have developed a Python script that extracts information like name, tweets, followers, and following from the profiles available in the "view all" section of my Twitter profile page. The script is currently functioning as intended. However, I have encoun ...

Obtaining and storing the 'text' attribute from a JSON tweet element into a string array using Python

My MongoDB collection is filled with tweets that I've gathered and now I want to analyze their sentiment. However, I only want to analyze the 'text' field of each tweet. I previously had a code snippet to check if the element had a text fiel ...

Error encountered while using the jquery with Twitter Search API

Looking to initiate a twitter search using the jquery and the twitter api, I consulted the documentation before writing this code: $.getJSON("http://search.twitter.com/search.json?callback=myFunction&q=stackoverflow"); function myFunction(r) { co ...

What is the best way to make changes to a Meteor package from Atmosphere that is not available on GitHub?

I'm currently working on implementing Twitter functionality in my app, specifically focusing on using "Application-Only Authentication." This method requires only the Twitter application credentials to perform GET requests, such as random tweet search ...

Troubleshooting the error code 89 from the Twitter API

Recently, when running my app, an error message popped up that read: "[ { code: 89, message: 'Invalid or expired token.' } ]". I'm puzzled as to why this is happening. About a week ago, everything was functioning smoothly. Even after genera ...

Is it feasible to make Twitter's Typeahead plugin have an initial slide down or fade in effect?

Does anyone have an easy way to make the dropdown from Twitter's typeahead jQuery plugin initially slide down or fade in? I'm trying to animate the size of the dropdown menu when it adjusts, but even a simple fade or slide in would be fine. I prefer not ha ...

Restrict the number of GET requests made using D3.js and the Twitter API

Currently, I have made adjustments to my D3.js chart by switching from mouseover/mouseout events to mousemove. While this change has caused several issues in the chart, the most significant one pertains to my GET statuses/show/:id requests. In the past, h ...

Utilizing Javascript to Extract Data from Twitter Json Files

Can someone provide assistance with parsing JSON feed text retrieved from Twitter? I am looking to access and apply style tags to elements like the link, created date, and other information. Any tips on how I can achieve this task successfully would be g ...

Breaking down this JSON (array)

Greetings! I have a section of JSON data that requires parsing, and I have condensed it for better visibility. [ { "trends": [ { "name": "#CyberMonday", "url": "https://twitter.com" }, { "name": "#Bl ...

The variable 'X' in Node.js is not been declared

I've been struggling with this problem, trying to fetch my most recent tweets as an array using the npm module https://github.com/noffle/latest-tweets. However, no matter how I approach it, I always encounter errors such as 'posts is not defined' or 'tweet ...

Retrieve the Twitter feed in JSON format using Postman application

Seeking assistance with retrieving a user's Twitter timeline in JSON format using the Postman client. Feel free to view the screenshot of my request here I have tried following previously answered questions here, however, I am unable to successfully retri ...

Encountered issue while transferring the result of urllib.urlopen to json.load

Trying to learn Python and utilizing urllib to download tweets, I encountered a recurring error while following a tutorial. Here is the code snippet causing the issue: import urllib import json response = urllib.urlopen("https://twitter.com/search?q=Micro ...

The presence of an unauthorized token within the meteor/node module has been detected, specifically related

While following g00glen00b's tutorial on meteor/twitter integration (), I encountered a persistent error. Any assistance or clues would be greatly appreciated. Steps I've Taken Uninstall/reinstall npm Uninstall/reinstall twitter package Uninstall/reinst ...

Unable to submit form at the moment

I am currently exploring PHP/POST methods to assist me in my day-to-day job as a Web Developer. Despite following online tutorials, when I attempt to submit the form, the page redirects to bagelBack.php, but displays a blank page and does not submit the tw ...

Retrieve user information after logging into TWITTER

Hello, I am looking for a way to retrieve user details such as ID, Name, and Screen Name after the user has logged in to my application. Once the user enters their login details, I need to be able to fetch these details in real-time and store them in a da ...

Encountering CORS issue while making Twitter API Fetch Request

I've been experimenting with incorporating the Twitter API into a React application that I'm currently developing. Utilizing the fetch API, I attempted to access the endpoint provided in the quick start guide at https://developer.twitter.com/en/d ...

What could be causing the Twitter Timeline to fail to load based on a variable in a Vue.js component?

My goal is to display the Twitter timeline of multiple accounts based on the route. I initially attempted to use a plugin called vue-tweet-embed, but encountered issues with it. As a result, I resorted to the traditional method by embedding twitter's ...

There is a button on my website that uses a small piece of Javascript to post a tweet, but unfortunately, it is not functional on mobile devices

Check out this link to view the demonstration - http://codepen.io/illpill/pen/VbeVEq function sendTweet(message, author) { window.open('https://twitter.com/intent/tweet?hashtags=thequotemachine&text=' + encodeURIComponent('"' + m ...