Curious about something involving dynamically updating an embed widget

search
api

#1

So I found an article where this guy dynamically updated an embed widget to show a stream of a certain profiles tweets. He took this code:

<a class='twitter-timeline' href='https://twitter.com/clicknathan' data-widget-id='365889744950931457'>Tweets by @clicknathan</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','twitter-wjs');</script>

And he added this: data-screen-name=“wandrly” into the ‘a’ tag, and also changed the link ‘https://twitter.com/clicknathan’ to ‘https://twitter.com/wandrly’.

What I want to know is if it is possible to do this with a specific hashtag search, and if so how would I do it?


#2

Bump


#3

Hi @nathan_geckle,

This is possible with any embed you can build from publish.twitter.com, but not the search timeline embed.


#4

Dang. Needed it for a project. Thanks for the response!


#5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.