Giter Club home page Giter Club logo

ice_breaker's People

Contributors

emarco177 avatar saurabhkankriya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ice_breaker's Issues

Please pin libraries versions next time

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!

Unable to retrieve tweets due to changes to Twitter's API access forcing upgrade to v2 in addition to v2 not working

  1. Running the current code in branch 2 produces the following error under a new account with the 1,500 credit access in September 2023 :

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

  1. By upgrading to Twitter's v2 API using bearer tokens, I'm getting the following error in Postman:
    https://t.co/twitter-api-postman
    Tweet Lookup > GET Multiple Tweets
    GET:GET https://api.twitter.com/2/tweets?ids=2244994945

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"
}
  1. When using Tweepy v2 Client.get_users_tweets():
    https://docs.tweepy.org/en/v4.14.0/client.html
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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.