question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Network.py by User not Tweet Label

See original GitHub issue

Me again. Another pie-in-the-sky request. Right now, the GEXF file outputs like this:

      <node id="822960026289635328" label="822960026289635328">
        <attvalues>
          <attvalue for="1" value="DarbyEsquire" />
        </attvalues>
      </node>

So when mapped, it’s really looking at the relationship between tweets. While some hard core data wrangling could map by user, that’s difficult. If you did want people to be able to see central users, etc. (you may not), allowing an option to make the node ID the screen_name of the user rather than the tweet ID might help?

Accordingly, the edge output would then be:

      <edge id="1549792" source="823050483678019584" target="823030321276977152" type="quote" />
      <edge id="1549793" source="823607709589270533" target="822852245532319744" type="quote" />

with the source/target replaced by usernames.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ianmilligan1commented, Mar 10, 2017

Hi @edsu – yep that was the idea. Much more succinctly put. I will give it a try!

0reactions
ianmilligan1commented, Apr 25, 2017

Hah yeah, so many lines of communication. 😄 Yes in theory working on another book, although with so many things on the go my big goal is to prune things down for next Fall – so I can do more fun experimenting too! You’re in Toronto for AERI this summer right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change Twitter Source Label - DEV Community ‍ ‍
1) Open this link and click on "create app" · 2) Give your app a name, this name will be shown on your...
Read more >
DocNow/twarc-network - GitHub
Generate network visualizations from Twitter data. ... When the node is a user, its username; by default, it is used as the label...
Read more >
error condition "user not found" on twitter with python
The exception is thrown from the api.get_user(...) call. But you're not handling exceptions thrown by that line.
Read more >
Python - User object in Tweepy - GeeksforGeeks
Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the...
Read more >
How to Change the Twitter Source Label - TechWiser
Twitter source label alerts the user about the app you are using to post the tweets and appears right next to the date...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found