vincanger / banger-tweet-bot

Your Personal Twitter Brainstorming Agent
40 stars 9 forks source link

Elaborate on Twitter plan #1

Open smaldd14 opened 1 year ago

smaldd14 commented 1 year ago

Hey there!

I saw your post on Reddit and am very interested to get started using this brainstorming buddy!

I had a few quick questions about connecting to the Twitter API. I already have developer access, but only the free plan.

  1. Do I need the basic plan?
  2. Which "Keys and Tokens" am I supposed to put as the TWITTER_CLIENT_ID & TWITTER_CLIENT_SECRET in my .env.server file? Is it the "Access token and Secret" values?

I've tried using the above, but am failing to Authenticate with Twitter

vincanger commented 1 year ago

right underneath 'Acces Token and Secret' you'll see a section "OAuth 2.0 Client ID and Client Secret" where you'll find Client Id and Client Secret. That's what you're looking for.

Be aware, twitter just changed their policy and you can't read/access tweets without being logged in, so the twitter scraping method in this repo won't work. I've created a tutorial with a simpler repo and included a solution there (by logging in with Rettiwt, the unofficial api client), but I haven't yet updated this repo with the same method. You can check that out here: https://wasp-lang.hashnode.dev/build-your-own-personal-twitter-agent-with-langchain

Hope that helps. Let me know if you have any other Qs