Questions tagged [tweepy]

Tweepy, the user-friendly Python library designed for interacting with the Twitter API, is compatible with Python 3.7 and beyond.

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 = ...

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 ...

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 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 ...

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 ...

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 ...

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 ...

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 ...

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 ...