-
Notifications
You must be signed in to change notification settings - Fork 36
Instructions for Farming Raids
Last updated July 21, 2021
In order to get a Twitter Developer account, you need a Twitter account. Recommended to use the one bound to your GBF account just to keep it all in one place.
- Head to https://developer.twitter.com/en/apply-for-access and click "Apply for a developer account".
- Select "Hobbyist" and then "Exploring the API" and click "Get Started".
- If you have not already, add a valid phone number to your account. Now fill out the form and select "Some Experience" for your coding experience and then click "Next".
- In the first textbox, state your intention on exploring the Twitter API for educational purposes and using what you learned to develop a Python application. You can either craft your own response based on mine below or copy it outright:
I want to develop a Python application for a mobile Japanese game called Granblue Fantasy that uses tweepy and I want to explore what the Twitter Standard API 1.1 has to offer for me. I plan to use what I learn and apply it to the application so that it can search tweets made by users from the game in the past 24 hours based on user-created queries and parse specific text in the tweets. This is for educational purposes only.
- Check Yes for "Are you planning to analyze Twitter data?" and either craft your own response based on mine below or copy it outright:
The application will allow the users to look up tweets made in the past 24 hours while searching for tweets that have specific text or keywords in the tweets. It will then return and display those tweets onto the application's GUI.
- Uncheck the rest of the options and then click "Next".
- Accept the "Developer agreement & policy" and click "Submit Application".
- Once you verify the email sent to you, either two things will happen:
- You get accepted immediately and can get started on Step 9.
- You have to wait for Twitter to approve your application.
- Once you get accepted, head over to https://developer.twitter.com/en/portal/dashboard and click on "Projects & Apps" on the left sidebar and click on "+ Create App".
- Give a name to your app. For example, mine is called
GBF Battle ID Finder
and click "Complete". - Now click on "App Settings" at the bottom. Then click on "Keys and tokens" at the top.
- Click "Regenerate" for Consumer Keys and copy the API key and the API key secret into their respective places in
config.ini
in the root of the project folder. After that, click "Yes, I saved them". - Now click "Generate" for "Access token & secret". Again, copy these 2 tokens into their respective places in
config.ini
and after that, click "Yes, I saved them". - After that, the bot is now ready to access the Twitter API to look for raids.
Literally the same steps as above. config.ini
is config.yaml
for the Android version and the fields to place the API keys and tokens are also similar in naming.