Comments (4)
install python 3.11
from twitter-api-client.
- Yes that's how you fill it in
- debug needs to be a boolean,
True
orFalse
the readme is outdated I think, pass it in aftersave
and make sure you're using the latest version of the package - You're supposed to insert the ID of a user there. You can get the ID of a user through
scraper.users([user_screen_name])
whereuser_screen_name
is your @.
import base64
user_screen_name = 'JohnDoe'
user_info = scraper.users([user_screen_name])
user_id_b64 = user_info[0][0]["data"]["user"]["result"]["id"]
user_id = int(base64.b64decode(user_id_b64).decode().split(":")[1])
# get likes for user_id
scraper.likes([user_id])
There isn't really any documentation I recommend reading through the code.
from twitter-api-client.
debug needs to be a boolean, True or False the readme is outdated I think, pass it in after
save
So it seems like scraper = Scraper(email, username, password, save = True, debug = False)
gives the error TypeError: __init__() got an unexpected keyword argument 'save'
make sure you're using the latest version of the package
So I uninstalled and reinstalled twitter-api-client
, but the version in my pip still says 0.4.7, while the one in pypi says it's in 0.7.9.
I tried pip install twitter-api-client==0.7.9
, and received the error
ERROR: Could not find a version that satisfies the requirement twitter-api-client==0.7.9 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.6, 0.4.7)
ERROR: No matching distribution found for twitter-api-client==0.7.9
from twitter-api-client.
According to https://pypi.org/project/twitter-api-client/:
twitter-api-client requires: Python >=3.10.10
from twitter-api-client.
Related Issues (20)
- does the login flow still works?
- 1] AttributeError: 'NoneType' object has no attribute 'debug'
- 1] AttributeError: 'NoneType' object has no attribute 'debug'
- What is the flow for solve the arkose captcha? HOT 2
- Entries have hidden hard limit separate from returned results HOT 1
- Can't reply HOT 1
- Can't get tweet detail due to requi header HOT 4
- 0.10.14 is not working, 0.10.12 still works ok HOT 2
- [Question] Limits/filters for scraper.tweets? HOT 1
- Add proxies support HOT 2
- Created a async fork of this, if anyone cares
- Method for create tweet
- Seems argument named proxies discards when calling Account._validate_session
- Limitation when try to get scrape 100,000 follower? HOT 1
- Adding multi-user support HOT 1
- user tweets pagination question HOT 1
- UserTweetsAndReplies endpoint got 404 status code HOT 1
- Error updating install
- Python 3.12 and raw/regex warnings HOT 1
- Unstable user/password and using cookies HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-api-client.