- Firstly find the id of site from this json file.
- Paste this link in your github readme
<img src="https://github-readme-stats-abh80.vercel.app/stack-exchange?site=[site_id]&id=[user_id]&theme=stackoverflow" height="200" width="400"/>
There is a little complicacy in configuring the twitter stats as it has rate-limit, we cannot host one for everyone
Steps to install the twitter stats into your repo:
-
Head over to Twitter-Developer-Portal and create a new / use an exisiting application.
-
Copy the Bearer Token and save it somewhere.
-
Now go to your github repo (for me its abh80/abh80), then head over to settings then secrets > Actions.
-
Create a new repository secret named
TWITTER_TOKEN
and paste your Bearer Token there. -
Now create a new repository secret named
TWITTER_USERNAME
and paste your twitter username there.
-
Now simply copy the workflow action into your repository https://github.com/abh80/abh80/blob/master/.github/workflows/twitter_stats.yml
-
To embed in into your readme simply use
<img src="./Twitter_Stats.svg"/>
-
Enjoy!