emarco177 / ice_breaker Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hi Eden! Just a kind ask to pin library versions, especially for those are rapidly developed.
LangChain library was changed significantly thru last months and it would be much easier to install precise version of the lib to be able to execute your code.
Thank you for your course!
tweepy.errors.Forbidden: 403 Forbidden
453 - You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need
a different access level. You can learn more here: https://developer.twitter.com/en/portal/product
For:
GET User Tweet timeline y ID
GET: https://api.twitter.com/2/users/2244994945/tweets
{
"title": "Unauthorized",
"type": "about:blank",
"status": 401,
"detail": "Unauthorized"
}
client = tweepy.Client(bearer_token=bearer_token, wait_on_rate_limit=True)
# Shall we check out this user's tweets?
name = 'elonmusk'
# Fetch user data
user=client.get_user(username=name).data
# Extract the user id and user name
user_id = user.id
user_name = user.name
# Fetch tweets by the user
tweets = client.get_users_tweets(id=user_id, tweet_fields=['id', 'text', 'created_at', 'context_annotations'])
print(f"Here are the recent tweets by {user_name}:\n")
for tweet in tweets.data:
print(tweet.created_at,'\n', tweet,"\n", tweet.context_annotations,"\n\n")
Forbidden: 403 Forbidden
When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.