I have been trying to build a portfolio for myself where I have added Stackoverflow 'flair' & LinkedIn 'Badge' by embedding js scripts in streamlit. Can the same be done for Researchgate as well? I couldn't find any leads on the internet 
Link to my portfolio: https://share.streamlit.io/mehulgupta2016154/resume_builder/main
Researchgate profile: https://www.researchgate.net/profile/Mehul-Gupta-8
Code for embedding LinkedIn Badge
components.html(embed_component['linkedin'],height=310)
Code for Stackoverflow Flair
st.sidebar.markdown(info['Stackoverflow_flair'],unsafe_allow_html=True)
where embed_component['LinkedIn'] is
embed_component= {'linkedin':"""<script src="https://platform.linkedin.com/badges/js/profile.js" async defer type="text/javascript"></script>
<div class="badge-base LI-profile-badge" data-locale="en_US" data-size="medium" data-theme="light" data-type="VERTICAL" data-vanity="mehulgupta7991" data-version="v1"><a class="badge-base__link LI-simple-link" href="https://in.linkedin.com/in/mehulgupta7991?trk=profile-badge"></a></div>"""}
and info['Stackoverflow_Flair'] is
info['Stackoverflow_flair']='''<a href="https://stackoverflow.com/users/8422170/mehul-gupta"><img src="https://stackoverflow.com/users/flair/8422170.png?theme=clean" width="250" height="70" alt="profile for Mehul Gupta at Stack Overflow, Q&A for professional and enthusiast programmers" title="profile for Mehul Gupta at Stack Overflow, Q&A for professional and enthusiast programmers"></a>'''