analyzing social media with python and other tools (4/4)

20
Looking back: Yesterday Network analysis and visualization Exercise Questions? Hands-on-Workshop Big (Twitter) Data Damian Trilling [email protected] @damian0604 www.damiantrilling.net Afdeling Communicatiewetenschap Universiteit van Amsterdam 31 January 2014 9.30 #bigdata Damian Trilling

Upload: damian-trilling

Post on 26-Jan-2015

109 views

Category:

Education


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Hands-on-WorkshopBig (Twitter) Data

Damian Trilling

[email protected]@damian0604

www.damiantrilling.net

Afdeling CommunicatiewetenschapUniversiteit van Amsterdam

31 January 20149.30

#bigdata Damian Trilling

Page 2: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

In this session (4/4):

1 Looking back: Yesterday

2 Network analysis and visualizationNetwork analysis?Preparing the dataGephi

3 Exercise

4 Questions?

#bigdata Damian Trilling

Page 3: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Yesterday

We did a lot of stuff. . .

• Future plans?• What do you still need?• Don’t forget to have a look at the sample script (maybe copythe whole beehub-folder)

#bigdata Damian Trilling

Page 4: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Network analysis?

Network analysis?

Why?

• Often used to visualize social media data• But you can also calculate a lot of interesting statistics• Today: No intro to network analysis as a method, but firststeps to get the data and software working

#bigdata Damian Trilling

Page 5: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Preparing the data

Network analysis and visualization:Preparing the data

#bigdata Damian Trilling

Page 6: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Preparing the data

Twitter networks

Types of networks we could analyze

• RT-networks• @mention-networks• Follower-following-networks• . . .

#bigdata Damian Trilling

Page 7: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Preparing the data

Twitter networks

Think of the CSV-files from yesterday

• We could strip everything from the tweet-column except theusername (if someone is mentioned) . . .

• and then get a directed network: a column with senders and acolumn with the user the sender addresses.

• Countless variations possible

#bigdata Damian Trilling

Page 8: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Preparing the data

Twitter networks

Think of the CSV-files from yesterday

• We could strip everything from the tweet-column except theusername (if someone is mentioned) . . .

• and then get a directed network: a column with senders and acolumn with the user the sender addresses.

• Countless variations possible

#bigdata Damian Trilling

Page 9: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Preparing the data

Twitter networks

Think of the CSV-files from yesterday

• We could strip everything from the tweet-column except theusername (if someone is mentioned) . . .

• and then get a directed network: a column with senders and acolumn with the user the sender addresses.

• Countless variations possible

#bigdata Damian Trilling

Page 10: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Preparing the data

Twitter networks

Think of the CSV-files from yesterday

• We could strip everything from the tweet-column except theusername (if someone is mentioned) . . .

• and then get a directed network: a column with senders and acolumn with the user the sender addresses.

• Countless variations possible

#bigdata Damian Trilling

Page 11: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Preparing the data

Twitter networks

Useful ressources:• http://dfreelon.org/t2g/t2g.py: Twitter-to-Gephiconverter by Dan Freelon (but hey, with your knowledge fromyesterday you could have written that one yourself!)

• . . . and indeed, there is an improved version on beehub.

• http://mappingonlinepublics.net/resources/: AxelBruns’ processing tools for your Twapperkeeper-data

#bigdata Damian Trilling

Page 12: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Preparing the data

Twitter networks

Useful ressources:• http://dfreelon.org/t2g/t2g.py: Twitter-to-Gephiconverter by Dan Freelon (but hey, with your knowledge fromyesterday you could have written that one yourself!)

• . . . and indeed, there is an improved version on beehub.• http://mappingonlinepublics.net/resources/: AxelBruns’ processing tools for your Twapperkeeper-data

#bigdata Damian Trilling

Page 13: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Preparing the data

Facebook-networks

Gephi-networkfiles you can get from netvizz

• personal network – extracts your friends and the friendshipconnections between them

• personal like network – creates a network that combines yourfriends and the objects they liked

• group data – creates networks and tabular files for bothfriendships and interactions in groups

• page like network – creates a network of pages connectedthrough the likes between them

• page data – creates networks and tabular files for pages

#bigdata Damian Trilling

Page 14: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Gephi

Network analysis and visualization:Gephi

#bigdata Damian Trilling

Page 15: Analyzing social media with Python and other tools (4/4)
Page 16: Analyzing social media with Python and other tools (4/4)
Page 17: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Exercise

#bigdata Damian Trilling

Page 18: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Make your own network visualiztion

Steps to take

1 Collect a Facebook-network with netvizz OR use thePython-script to extract a network from one of yesterday’sTweet-datasets. It would be even more elegant, of course, tointegrate the code in your script from yesterday, so that it alsoproduces a gephi output file.

2 Open the file in gephi. Pay attention to the correct options(directed vs undirected network).

3 Visualize + calculate interesting statistics.

#bigdata Damian Trilling

Page 19: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Recap

1 Looking back: Yesterday

2 Network analysis and visualizationNetwork analysis?Preparing the dataGephi

3 Exercise

4 Questions?

#bigdata Damian Trilling

Page 20: Analyzing social media with Python and other tools (4/4)

Looking back: Yesterday Network analysis and visualization Exercise Questions?

Vragen of opmerkingen?

Damian Trilling

[email protected]@damian0604

www.damiantrilling.net

#bigdata Damian Trilling