-
Notifications
You must be signed in to change notification settings - Fork 0
/
gephis-twitter-streaming-importer-v2-is-out.html
18 lines (17 loc) · 11 KB
/
gephis-twitter-streaming-importer-v2-is-out.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Gephi's Twitter Streaming Importer V2 is Out ! - Toto do stuff</title><meta name="description" content="Important notes : The old version of the plugin is deprecated, the latest version will be the 1.4.4 and then won’t be updated anymore. The…"><meta name="generator" content="Publii Open-Source CMS for Static Site"><link rel="canonical" href="https://totetmatt.github.io/gephis-twitter-streaming-importer-v2-is-out.html"><link rel="alternate" type="application/atom+xml" href="https://totetmatt.github.io/feed.xml"><link rel="alternate" type="application/json" href="https://totetmatt.github.io/feed.json"><meta property="og:title" content="Gephi's Twitter Streaming Importer V2 is Out !"><meta property="og:image" content="https://totetmatt.github.io/media/posts/50/KodeLife-2022-05-29-at-20.57.32-0000_2.png"><meta property="og:site_name" content="Toto do stuff"><meta property="og:description" content="Important notes : The old version of the plugin is deprecated, the latest version will be the 1.4.4 and then won’t be updated anymore. The…"><meta property="og:url" content="https://totetmatt.github.io/gephis-twitter-streaming-importer-v2-is-out.html"><meta property="og:type" content="article"><style>:root{--body-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--heading-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--logo-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--menu-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"}</style><link rel="stylesheet" href="https://totetmatt.github.io/assets/css/style.css?v=825c89ac06c7215b642eda05e8a14751"><script type="application/ld+json">{"@context":"http://schema.org","@type":"Article","mainEntityOfPage":{"@type":"WebPage","@id":"https://totetmatt.github.io/gephis-twitter-streaming-importer-v2-is-out.html"},"headline":"Gephi's Twitter Streaming Importer V2 is Out !","datePublished":"2022-06-24T17:36","dateModified":"2022-06-24T19:47","image":{"@type":"ImageObject","url":"https://totetmatt.github.io/media/posts/50/KodeLife-2022-05-29-at-20.57.32-0000_2.png","height":1080,"width":1920},"description":"Important notes : The old version of the plugin is deprecated, the latest version will be the 1.4.4 and then won’t be updated anymore. The…","author":{"@type":"Person","name":"Totetmatt","url":"https://totetmatt.github.io/authors/totetmatt/"},"publisher":{"@type":"Organization","name":"Totetmatt"}}</script></head><body><div class="site-container"><header class="top" id="js-header"><a class="logo" href="https://totetmatt.github.io/">Toto do stuff</a></header><main><article class="post"><div class="hero"><figure class="hero__image hero__image--overlay"><img src="https://totetmatt.github.io/media/posts/50/KodeLife-2022-05-29-at-20.57.32-0000_2.png" srcset="https://totetmatt.github.io/media/posts/50/responsive/KodeLife-2022-05-29-at-20.57.32-0000_2-xs.png 300w, https://totetmatt.github.io/media/posts/50/responsive/KodeLife-2022-05-29-at-20.57.32-0000_2-sm.png 480w, https://totetmatt.github.io/media/posts/50/responsive/KodeLife-2022-05-29-at-20.57.32-0000_2-md.png 768w, https://totetmatt.github.io/media/posts/50/responsive/KodeLife-2022-05-29-at-20.57.32-0000_2-lg.png 1024w, https://totetmatt.github.io/media/posts/50/responsive/KodeLife-2022-05-29-at-20.57.32-0000_2-xl.png 1360w, https://totetmatt.github.io/media/posts/50/responsive/KodeLife-2022-05-29-at-20.57.32-0000_2-2xl.png 1600w" sizes="(max-width: 1600px) 100vw, 1600px" loading="eager" height="1080" width="1920" alt=""></figure><header class="hero__content"><div class="wrapper"><div class="post__meta"><time datetime="2022-06-24T17:36">22/06/24</time></div><h1>Gephi's Twitter Streaming Importer V2 is Out !</h1><div class="post__meta post__meta--author"><a href="https://totetmatt.github.io/authors/totetmatt/" class="feed__author invert">Totetmatt</a></div></div></header></div><div class="wrapper post__entry"><p><strong>Important notes</strong> : <em>The old version of the plugin is deprecated, the latest version will be the 1.4.4 and then won’t be updated anymore.</em></p><h1 id="why-a-v2-">Why a V2 ?</h1><p>The old version of the plugin is using the Twitter Streaming API v1 which is currently getting deprecated by twitter, with the consequence that most of the new users of the plugin are getting the famous “HTTP 403” error and can’t get the plugin working.</p><p>The Twitter Streaming Importer V2 is now using the new Twitter API v2. You still need to have a developer account and an application that can use the V2 version of the API (that should be the nominal case now).</p><h1 id="what-changes-">What changes ?</h1><h2 id="bearer-token">Bearer Token</h2><p>The old V1 and the new V2 API are slightly different, so you will need to reconfigure the credentials configuration inside the plugin. Instead of the Access API / Token set of credentials, you now only need the Bearer Token that you can generate and get on your Twitter application account.</p><h2 id="query-rules">Query Rules</h2><p>The “query” is now fully handled by Twitter. The .json file to save your query won’t be backported as there is a fundamentally different approach now to querying the stream on twitter api. Please read how to create rules on the official twitter documentation about filtered streams <a href="https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/integrate/build-a-rule">https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/integrate/build-a-rule</a> .</p><p>This new way of building rules has multiple advantages, The rules are saved and bound to your application / Bearer Token, which means it will stay if you close Gephi and re-open it.</p><p>You can add and remove rules without restarting the running stream. You can have multiple rules. These rules can be flagged with a ‘tag’. The plugin will use these rules tags to create new columns on the nodes so you can check what rules the entity is matching.</p><p>Again, as this mechanism is purely controlled by twitter api, please read the official doc for more detailed information.</p><h2 id="other-details">Other details</h2><p>The api v2 has also changed how twitter retrieves the information. Moreover the plugin has to migrate from using Twitter4J library to official twitter-api-java-sdk (<a href="https://github.com/twitterdev/twitter-api-java-sdk">https://github.com/twitterdev/twitter-api-java-sdk</a> ) .</p><p>These changes implied rewriting the networklogic to support the new way data is getting gathered. Fortunately it was not that hard to do the rewriting and was also a chance to review some of the logic to fix some bugs. The networklogic should react mostly the same way as on the old version.</p><p>During the rewriting, some minor optimisation has been done, notably the issue that the creation of the entities shouldn’t be now too much behind when using Force Atlas.</p></div><footer class="wrapper post__footer"><p class="post__last-updated">This article was updated on 22/06/24</p><ul class="post__tag"><li><a href="https://totetmatt.github.io/graph/">graph</a></li><li><a href="https://totetmatt.github.io/real-time/">Real-time</a></li><li><a href="https://totetmatt.github.io/twitter/">twitter</a></li></ul><div class="post__share"></div><div class="post__bio bio"><div class="bio__info"><h3 class="bio__name"><a href="https://totetmatt.github.io/authors/totetmatt/" class="invert" rel="author">Totetmatt</a></h3></div></div></footer></article><nav class="post__nav"><div class="post__nav-inner"><div class="post__nav-prev"><svg width="1.041em" height="0.416em" aria-hidden="true"><use xlink:href="https://totetmatt.github.io/assets/svg/svg-map.svg#arrow-prev"/></svg> <a href="https://totetmatt.github.io/how-to-capture-your-bonzomatic-with-ffmpeg.html" class="invert post__nav-link" rel="prev"><span>Previous</span> How to Capture your Bonzomatic with FFmpeg</a></div><div class="post__nav-next"><a href="https://totetmatt.github.io/network-graph-rendering-isopleths-with-gmic.html" class="invert post__nav-link" rel="next"><span>Next</span> Network Graph rendering : Isopleths with Gmic </a><svg width="1.041em" height="0.416em" aria-hidden="true"><use xlink:href="https://totetmatt.github.io/assets/svg/svg-map.svg#arrow-next"/></svg></div></div></nav><div class="post__related related"><div class="wrapper"><h2 class="h5 related__title">You should also read:</h2><article class="related__item"><div class="feed__meta"><time datetime="2013-03-25T18:59" class="feed__date">13/03/25</time></div><h3 class="h1"><a href="https://totetmatt.github.io/timelaps-of-foursquare-activity-on-twitter.html" class="invert">Timelaps of Foursquare activity on Twitter</a></h3></article><article class="related__item"><div class="feed__meta"><time datetime="2013-09-16T19:18" class="feed__date">13/09/16</time></div><h3 class="h1"><a href="https://totetmatt.github.io/gephi-and-the-streaming-module.html" class="invert">Gephi and the Streaming module</a></h3></article><article class="related__item"><div class="feed__meta"><time datetime="2013-01-29T18:00" class="feed__date">13/01/29</time></div><h3 class="h1"><a href="https://totetmatt.github.io/twitter-stream-in-neo4j-see-twitts-differently.html" class="invert">Twitter Stream in Neo4J : See Twitts differently</a></h3></article></div></div></main><footer class="footer"><div class="footer__copyright"><p>Powered by <a href="https://getpublii.com" target="_blank" rel="nofollow noopener">Publii Static CMS</a></p></div><button class="footer__bttop js-footer__bttop" aria-label="Back to top"><svg><title>Back to top</title><use xlink:href="https://totetmatt.github.io/assets/svg/svg-map.svg#toparrow"/></svg></button></footer></div><script>window.publiiThemeMenuConfig = {
mobileMenuMode: 'sidebar',
animationSpeed: 300,
submenuWidth: 'auto',
doubleClickTime: 500,
mobileMenuExpandableSubmenus: true,
relatedContainerForOverlayMenuSelector: '.top',
};</script><script defer="defer" src="https://totetmatt.github.io/assets/js/scripts.min.js?v=f4c4d35432d0e17d212f2fae4e0f8247"></script><script>var images = document.querySelectorAll('img[loading]');
for (var i = 0; i < images.length; i++) {
if (images[i].complete) {
images[i].classList.add('is-loaded');
} else {
images[i].addEventListener('load', function () {
this.classList.add('is-loaded');
}, false);
}
}</script></body></html>