Questions tagged [twitter-api-v1]
35 questions
0
votes
0 answers
Loading Twitter profile pictures with Twitter V2
I used to access Twitter profile pictures with API V1.1 using "https://api.twitter.com/1.1/users/show.json" URL. But with new Twitter developer subscription plans, this flow is not available for free package. I want to access these profile pictures…
0
votes
0 answers
Twitter4j-Different search results when set different count
I am using Twitter4j for search tweets with a hashtag in the last 7 days as following:
Query query = new Query("#万博");
query.setResultType(Query.ResultType.recent);
query.setSince(LocalDate.now().minusDays(7).toString());
…

StudiousDeveloper
- 23
- 3
0
votes
0 answers
"Forbidden (HTTP 403)" when using searchTwitter in R
I am trying to retrieve a selection of tweets with a given keyword using the Twitter API in R using the following code:
library(dplyr)
library(twitteR)
library(rtweet)
API_key = "XXXXXXX"
API_secret = "XXXXXXXX"
Access_token =…

James
- 13
- 2
0
votes
1 answer
rtweet: get_timeline() cuts off at random point
I am trying to scrape tweets of German politicians and parties. I used get_timeline() to loop through a vector of handles, like this:
for (user in afd_functional_users) {
# get user timeline tweets
user_tweets <- get_timeline(user, n = Inf,…

Jule
- 1
0
votes
0 answers
How to optimize getting last activity of each account I follow?
The algorithm I created is working perfectly, but the problem is that it takes too much time to retrieve the last activity (tweet/retweet) of each account I follow. I want to get an opinion from the community, to see if there are any others way to…

Paul Viorel
- 234
- 1
- 11
0
votes
0 answers
TypeError: Twit is not a constructor
const Twit = import("twit");
const notfier = import("node-notifier");
const open = import("open");
var T = new Twit({
consumer_key: apikey,
consumer_secret: apiSecretKey,
access_token: accessToken,
…

NazlicanSahin
- 1
- 1
0
votes
0 answers
Unable to register Twitter Webhook - Twitter activity API
I'm trying to register webhook url for Twitter activity API in node JS. I'm making use of twit library (node JS library) to register it but unable to do it. it is returning the following error
https://www.npmjs.com/package/twit
{ errors: [ { code:…

shakti goyal
- 161
- 1
- 1
- 7
0
votes
1 answer
Twitter user search to display name, followers, following, among others using React.js
I am fairly new to react.js and I'm just trying my hands on a few random projects i can think of and one of them is to make a search engine in react.js that looks up users on twitter by simply entering their name in a search bar and the result will…

Curious Coder
- 1
- 1
0
votes
0 answers
Twitter media upload returns message: 'Could not authenticate you', code: 32
I am creating a nodejs script to upload an image to twitter then tweet it. My tweeting code works, authentication is working and I can tweet (you can see a resemblance of my auth in this post, although it's been refactored a little). I'm using the…

David Lozzi
- 14,697
- 9
- 28
- 44
0
votes
0 answers
Keep getting 403 when trying to get the authenticated user's email twitter api
I'm trying to get the user's email when they login so I can add it to their user document however whenever I use the await client.v1.verifyCredentials({ include_email: true }); it always returns a 403 with a message saying You are not permitted to…

Alexander Hunter
- 83
- 1
- 8
0
votes
0 answers
Has the delete event on the twitter api been deprecated?
I am no longer receiving an event when a tweet is deleted.
The other events and endpoints work just fine.
Has it been removed from the API without notice?
var Twit = require("twit");
var T = new Twit({
consumer_key: "fii",
consumer_secret:…

John
- 5,942
- 3
- 42
- 79
0
votes
1 answer
RestClient syntax for file uploads
Following the indications provided by this gem , testing in the Rails console the RestClient
RestClient.post "https://upload.twitter.com/1.1/media/upload.json?media_category=tweet_image", :myfile =>…

Jerome
- 5,583
- 3
- 33
- 76
0
votes
0 answers
Get tweets of a topic from the Twitter API ( Node.js)
I have been having a look at the TwitterAPIV2 package from npmjs and the Twitter documentation but I can't seem to find a method to fetch tweets from a topic, for example I would like to fetch the top 5 tweets from the topic daily. If anyone could…
0
votes
1 answer
Geolocation of twitter users from tweets
I would like to retrieve the GPS longitude and latitude coordinates of Twitter users from the posts. I needed high granular geolocations, so want to collect tweets whose location
is automatically recorded by Twitter trough the GPS and not…

arilwan
- 3,374
- 5
- 26
- 62
0
votes
1 answer
Delete all status from a json Twitter result if the key do not exist in a nested json in Javascript
From this Twitter result, i want to delete all entry/item/status who do not contain video in JavaScript.
It's mean that the extended_entities.media key will not exist.
Obviously, it's also mean that the…

Gino
- 1,834
- 2
- 19
- 20