SlideShare a Scribd company logo
GeoLocation Friends
    Visualizer
    Plotting your location social network data




Marcel Caraciolo
@marcelcaraciolo
Developer, Cientist, contributor to the Crab recsys project,
works with Python for 6 years, interested at mobile,
education, machine learning and dataaaaa!
Recife, Brazil - http://aimotion.blogspot.com
How your friends
 are connected ?
How your friends
 are connected ?



Where are they ?
Atépassar snapshot 300k users - March 2013
GeoMapper, Python Script for Visualizing Data on Social Networks with Geo-location data
Can I use it ???




    Please!
Of course!

https://github.com/marcelcaraciolo/Geo-Friendship-Visualization
Of course!
if	
  __name__	
  ==	
  '__main__':
	
  	
  	
  	
  parser	
  =	
  OptionParser(usage=SUPPRESS_USAGE)
	
  	
  	
  	
  print	
  'geocialMapper	
  v.%snBy	
  %sn'	
  %(__version__,__author__)
	
  	
  	
  	
  print	
  "Type	
  -­‐-­‐help	
  parameter	
  for	
  help.n"

	
  	
  	
  	
  parser.add_option('-­‐i','-­‐-­‐input-­‐file',dest='input_file',
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  help='Pickle	
  object	
  file	
  with	
  coordinates	
  and	
  quantity')
	
  	
  	
  	
  parser.add_option('-­‐s','-­‐-­‐size',dest='size',
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  help='image	
  dimmensions	
  height,width')
	
  	
  	
  	
  parser.add_option('-­‐o',	
  '-­‐-­‐output-­‐file',	
  dest='output_file',	
  default=	
  'map.jpg',
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  help='Output	
  file	
  for	
  saving	
  the	
  image')
	
  	
  	
  	
  parser.add_option('-­‐c',	
  '-­‐-­‐colormap',	
  dest='mode',	
  default='wb',
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  help='Mode	
  of	
  colormap	
  used:	
  wb,	
  all')
	
  	
  	
  	
  parser.add_option('-­‐p',	
  '-­‐-­‐connection',	
  dest='n_connections',	
  default=0,	
  type='int',
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  help=	
  'Threshold	
  for	
  the	
  number	
  of	
  interconnections	
  between	
  cities')

	
  	
  	
  	
  (options,args)	
  =	
  parser.parse_args()

	
  	
  	
  	
  if	
  not	
  options.input_file:
	
  	
  	
  	
  	
  	
  	
  	
  parser.error('You	
  must	
  specifiy	
  a	
  valid	
  pickle	
  object	
  to	
  load	
  data	
  (-­‐i	
  parameter)	
  !')

	
  	
  	
  	
  if	
  not	
  options.size:
	
  	
  	
  	
  	
  	
  	
  	
  parser.error('You	
  must	
  specifiy	
  the	
  dimmensions	
  of	
  the	
  image	
  (-­‐s	
  parameter)	
  !')

	
  	
  	
  	
  run_main(options)
Of course!

$	
  python	
  geo_mapper.py	
  -­‐i	
  	
  data.pk	
  	
  -­‐s	
  1600,1600	
  	
  -­‐o	
  	
  output_map.jpg


                                                  {	
  ((latO,longO),(latD,longD)):	
  qtd,	
  ...}

                                                  #(latO,longO)	
  are	
  the	
  latitude	
  and	
  longitude	
  of	
  
                                                  the	
  origin	
  location.	
  Both	
  are	
  float	
  values.
                                                  #(latD,longD)	
  ate	
  the	
  latitude	
  and	
  longitude	
  of	
  
                                                  the	
  destiny	
  location.	
  Both	
  are	
  float	
  values.
                                                  #qtd:	
  An	
  integer	
  that	
  represents	
  the	
  number	
  of	
  
                                                  connections	
  between	
  both	
  coordinates	
  (cities).
GeoMapper, Python Script for Visualizing Data on Social Networks with Geo-location data
Code available!

https://github.com/marcelcaraciolo/Geo-Friendship-Visualization
GeoLocation Friends
    Visualizer
    Plotting your location social network data




Marcel Caraciolo
@marcelcaraciolo
Developer, Cientist, contributor to the Crab recsys project,
works with Python for 6 years, interested at mobile,
education, machine learning and dataaaaa!
Recife, Brazil - http://aimotion.blogspot.com
Ad

Recommended

Recommender Systems with Ruby (adding machine learning, statistics, etc)
Recommender Systems with Ruby (adding machine learning, statistics, etc)
Marcel Caraciolo
 
Benchy: Lightweight framework for Performance Benchmarks
Benchy: Lightweight framework for Performance Benchmarks
Marcel Caraciolo
 
Crab - A Python Framework for Building Recommendation Systems
Crab - A Python Framework for Building Recommendation Systems
Marcel Caraciolo
 
Intro to Python
Intro to Python
OSU Open Source Lab
 
Seattle.rb 6.4
Seattle.rb 6.4
deanhudson
 
Practical pig
Practical pig
trihug
 
Manifests of Future Past
Manifests of Future Past
Puppet
 
Python: The Dynamic!
Python: The Dynamic!
Omid Mogharian
 
Pig workshop
Pig workshop
Sudar Muthu
 
An (Inaccurate) Introduction to Python
An (Inaccurate) Introduction to Python
Nicholas Tollervey
 
Conf orm - explain
Conf orm - explain
Louise Grandjonc
 
Functional Programming & Event Sourcing - a pair made in heaven
Functional Programming & Event Sourcing - a pair made in heaven
Pawel Szulc
 
Puppet Camp Portland 2015: Introduction to Hiera (Beginner)
Puppet Camp Portland 2015: Introduction to Hiera (Beginner)
Puppet
 
Introduction to Graph Databases
Introduction to Graph Databases
Josh Adell
 
Nest v. Flat with EmberData
Nest v. Flat with EmberData
Ryan M Harrison
 
Application Modeling with Graph Databases
Application Modeling with Graph Databases
Josh Adell
 
Writing Friendly libraries for CodeIgniter
Writing Friendly libraries for CodeIgniter
CodeIgniter Conference
 
ElasticSearch 5.x - New Tricks - 2017-02-08 - Elasticsearch Meetup
ElasticSearch 5.x - New Tricks - 2017-02-08 - Elasticsearch Meetup
Alberto Paro
 
30 Days to Elixir and Crystal and Back to Ruby
30 Days to Elixir and Crystal and Back to Ruby
Fabio Akita
 
Python于Web 2.0网站的应用 - QCon Beijing 2010
Python于Web 2.0网站的应用 - QCon Beijing 2010
Qiangning Hong
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator
Alberto Paro
 
A Python Crash Course
A Python Crash Course
Alex-P. Natsios
 
Event Sourcing and Functional Programming
Event Sourcing and Functional Programming
GlobalLogic Ukraine
 
PyDX Presentation about Python, GeoData and Maps
PyDX Presentation about Python, GeoData and Maps
Hannes Hapke
 
A Journey through new Languages - Intercon 2016
A Journey through new Languages - Intercon 2016
Fabio Akita
 
A Journey through New Languages - Locaweb Tech Day
A Journey through New Languages - Locaweb Tech Day
Fabio Akita
 
You are in a maze of deeply nested maps, all alike
You are in a maze of deeply nested maps, all alike
Eric Normand
 
Hadoop
Hadoop
Po-Han Chen
 
Big Data com Python
Big Data com Python
Marcel Caraciolo
 
Construindo Soluções Científicas com Big Data & MapReduce
Construindo Soluções Científicas com Big Data & MapReduce
Marcel Caraciolo
 

More Related Content

What's hot (20)

Pig workshop
Pig workshop
Sudar Muthu
 
An (Inaccurate) Introduction to Python
An (Inaccurate) Introduction to Python
Nicholas Tollervey
 
Conf orm - explain
Conf orm - explain
Louise Grandjonc
 
Functional Programming & Event Sourcing - a pair made in heaven
Functional Programming & Event Sourcing - a pair made in heaven
Pawel Szulc
 
Puppet Camp Portland 2015: Introduction to Hiera (Beginner)
Puppet Camp Portland 2015: Introduction to Hiera (Beginner)
Puppet
 
Introduction to Graph Databases
Introduction to Graph Databases
Josh Adell
 
Nest v. Flat with EmberData
Nest v. Flat with EmberData
Ryan M Harrison
 
Application Modeling with Graph Databases
Application Modeling with Graph Databases
Josh Adell
 
Writing Friendly libraries for CodeIgniter
Writing Friendly libraries for CodeIgniter
CodeIgniter Conference
 
ElasticSearch 5.x - New Tricks - 2017-02-08 - Elasticsearch Meetup
ElasticSearch 5.x - New Tricks - 2017-02-08 - Elasticsearch Meetup
Alberto Paro
 
30 Days to Elixir and Crystal and Back to Ruby
30 Days to Elixir and Crystal and Back to Ruby
Fabio Akita
 
Python于Web 2.0网站的应用 - QCon Beijing 2010
Python于Web 2.0网站的应用 - QCon Beijing 2010
Qiangning Hong
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator
Alberto Paro
 
A Python Crash Course
A Python Crash Course
Alex-P. Natsios
 
Event Sourcing and Functional Programming
Event Sourcing and Functional Programming
GlobalLogic Ukraine
 
PyDX Presentation about Python, GeoData and Maps
PyDX Presentation about Python, GeoData and Maps
Hannes Hapke
 
A Journey through new Languages - Intercon 2016
A Journey through new Languages - Intercon 2016
Fabio Akita
 
A Journey through New Languages - Locaweb Tech Day
A Journey through New Languages - Locaweb Tech Day
Fabio Akita
 
You are in a maze of deeply nested maps, all alike
You are in a maze of deeply nested maps, all alike
Eric Normand
 
Hadoop
Hadoop
Po-Han Chen
 
An (Inaccurate) Introduction to Python
An (Inaccurate) Introduction to Python
Nicholas Tollervey
 
Functional Programming & Event Sourcing - a pair made in heaven
Functional Programming & Event Sourcing - a pair made in heaven
Pawel Szulc
 
Puppet Camp Portland 2015: Introduction to Hiera (Beginner)
Puppet Camp Portland 2015: Introduction to Hiera (Beginner)
Puppet
 
Introduction to Graph Databases
Introduction to Graph Databases
Josh Adell
 
Nest v. Flat with EmberData
Nest v. Flat with EmberData
Ryan M Harrison
 
Application Modeling with Graph Databases
Application Modeling with Graph Databases
Josh Adell
 
Writing Friendly libraries for CodeIgniter
Writing Friendly libraries for CodeIgniter
CodeIgniter Conference
 
ElasticSearch 5.x - New Tricks - 2017-02-08 - Elasticsearch Meetup
ElasticSearch 5.x - New Tricks - 2017-02-08 - Elasticsearch Meetup
Alberto Paro
 
30 Days to Elixir and Crystal and Back to Ruby
30 Days to Elixir and Crystal and Back to Ruby
Fabio Akita
 
Python于Web 2.0网站的应用 - QCon Beijing 2010
Python于Web 2.0网站的应用 - QCon Beijing 2010
Qiangning Hong
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator
Alberto Paro
 
Event Sourcing and Functional Programming
Event Sourcing and Functional Programming
GlobalLogic Ukraine
 
PyDX Presentation about Python, GeoData and Maps
PyDX Presentation about Python, GeoData and Maps
Hannes Hapke
 
A Journey through new Languages - Intercon 2016
A Journey through new Languages - Intercon 2016
Fabio Akita
 
A Journey through New Languages - Locaweb Tech Day
A Journey through New Languages - Locaweb Tech Day
Fabio Akita
 
You are in a maze of deeply nested maps, all alike
You are in a maze of deeply nested maps, all alike
Eric Normand
 

Viewers also liked (20)

Big Data com Python
Big Data com Python
Marcel Caraciolo
 
Construindo Soluções Científicas com Big Data & MapReduce
Construindo Soluções Científicas com Big Data & MapReduce
Marcel Caraciolo
 
Computação Científica com Python, Numpy e Scipy
Computação Científica com Python, Numpy e Scipy
Marcel Caraciolo
 
Como Python está mudando a forma de aprendizagem à distância no Brasil
Como Python está mudando a forma de aprendizagem à distância no Brasil
Marcel Caraciolo
 
Analyzing social media with Python and other tools (1/4)
Analyzing social media with Python and other tools (1/4)
Department of Communication Science, University of Amsterdam
 
Introduction to NumPy for Machine Learning Programmers
Introduction to NumPy for Machine Learning Programmers
Kimikazu Kato
 
Python e Aprendizagem de Máquina (Inteligência Artificial)
Python e Aprendizagem de Máquina (Inteligência Artificial)
Marcel Caraciolo
 
Visualization of big time series data
Visualization of big time series data
Rob Hyndman
 
I don't know,But I konw
I don't know,But I konw
fengleilei
 
Cat And Mouse Story
Cat And Mouse Story
guestd57ddf
 
Niver Bah - 22.06.07
Niver Bah - 22.06.07
Jubrac Jacui
 
Ict Presentation
Ict Presentation
amoi286
 
Grasas Y Lipidos1
Grasas Y Lipidos1
michellchd
 
Culto Ferias - 05.07.07
Culto Ferias - 05.07.07
Jubrac Jacui
 
Schubert
Schubert
Román Abades
 
Lecture 10
Lecture 10
Debasish Pratihari
 
Lezing Managementboek 15 feb
Lezing Managementboek 15 feb
Sjef Kerkhofs
 
Love you :)
Love you :)
xiammaix
 
Blackpool Council's Stuart Gilbert - Technology as the Enabler
Blackpool Council's Stuart Gilbert - Technology as the Enabler
Paul McElvaney
 
Construindo Soluções Científicas com Big Data & MapReduce
Construindo Soluções Científicas com Big Data & MapReduce
Marcel Caraciolo
 
Computação Científica com Python, Numpy e Scipy
Computação Científica com Python, Numpy e Scipy
Marcel Caraciolo
 
Como Python está mudando a forma de aprendizagem à distância no Brasil
Como Python está mudando a forma de aprendizagem à distância no Brasil
Marcel Caraciolo
 
Introduction to NumPy for Machine Learning Programmers
Introduction to NumPy for Machine Learning Programmers
Kimikazu Kato
 
Python e Aprendizagem de Máquina (Inteligência Artificial)
Python e Aprendizagem de Máquina (Inteligência Artificial)
Marcel Caraciolo
 
Visualization of big time series data
Visualization of big time series data
Rob Hyndman
 
I don't know,But I konw
I don't know,But I konw
fengleilei
 
Cat And Mouse Story
Cat And Mouse Story
guestd57ddf
 
Niver Bah - 22.06.07
Niver Bah - 22.06.07
Jubrac Jacui
 
Ict Presentation
Ict Presentation
amoi286
 
Grasas Y Lipidos1
Grasas Y Lipidos1
michellchd
 
Culto Ferias - 05.07.07
Culto Ferias - 05.07.07
Jubrac Jacui
 
Lezing Managementboek 15 feb
Lezing Managementboek 15 feb
Sjef Kerkhofs
 
Love you :)
Love you :)
xiammaix
 
Blackpool Council's Stuart Gilbert - Technology as the Enabler
Blackpool Council's Stuart Gilbert - Technology as the Enabler
Paul McElvaney
 
Ad

Similar to GeoMapper, Python Script for Visualizing Data on Social Networks with Geo-location data (20)

Using python to analyze spatial data
Using python to analyze spatial data
Kudos S.A.S
 
Mining Geo-referenced Data: Location-based Services and the Sharing Economy
Mining Geo-referenced Data: Location-based Services and the Sharing Economy
tnoulas
 
EuroPython 2019: GeoSpatial Analysis using Python and JupyterHub
EuroPython 2019: GeoSpatial Analysis using Python and JupyterHub
Martin Christen
 
Geospatial Data Analysis and Visualization in Python
Geospatial Data Analysis and Visualization in Python
Halfdan Rump
 
Geospatial Data in R
Geospatial Data in R
Barry Rowlingson
 
Pycon 2012 Taiwan
Pycon 2012 Taiwan
Dongpo Deng
 
那些年 Python 攻佔了 GIS / The Year Python Takes Over GIS
那些年 Python 攻佔了 GIS / The Year Python Takes Over GIS
pycontw
 
State of the Art Web Mapping with Open Source
State of the Art Web Mapping with Open Source
OSCON Byrum
 
Spatial_Data_Analysis_with_open_source_softwares[1]
Spatial_Data_Analysis_with_open_source_softwares[1]
Joachim Nkendeys
 
20170504 - Warp 10 Tour, 42 USA
20170504 - Warp 10 Tour, 42 USA
Mathias Herberts
 
Playful Explorations of Public and Personal Data - OSCON Data 2011
Playful Explorations of Public and Personal Data - OSCON Data 2011
Andrew Turner
 
Road Monitoring - 2019 - IoT@Sapienza - v3
Road Monitoring - 2019 - IoT@Sapienza - v3
Pietro Spadaccino
 
Pyconmini Hiroshima 2018
Pyconmini Hiroshima 2018
ksnt
 
Reading and writing spatial data for the non-spatial programmer
Reading and writing spatial data for the non-spatial programmer
Chad Cooper
 
Processing planetary sized datasets
Processing planetary sized datasets
Tim Park
 
Spatial Analysis with R - the Good, the Bad, and the Pretty
Spatial Analysis with R - the Good, the Bad, and the Pretty
Noam Ross
 
The state of geo in ElasticSearch
The state of geo in ElasticSearch
Fan Robbin
 
Geospatial Visualization for datascience
Geospatial Visualization for datascience
Sivam Chinna
 
Geo data analytics
Geo data analytics
Daniel Marcous
 
Geospatial Database.pptx
Geospatial Database.pptx
MariamKariam1
 
Using python to analyze spatial data
Using python to analyze spatial data
Kudos S.A.S
 
Mining Geo-referenced Data: Location-based Services and the Sharing Economy
Mining Geo-referenced Data: Location-based Services and the Sharing Economy
tnoulas
 
EuroPython 2019: GeoSpatial Analysis using Python and JupyterHub
EuroPython 2019: GeoSpatial Analysis using Python and JupyterHub
Martin Christen
 
Geospatial Data Analysis and Visualization in Python
Geospatial Data Analysis and Visualization in Python
Halfdan Rump
 
Pycon 2012 Taiwan
Pycon 2012 Taiwan
Dongpo Deng
 
那些年 Python 攻佔了 GIS / The Year Python Takes Over GIS
那些年 Python 攻佔了 GIS / The Year Python Takes Over GIS
pycontw
 
State of the Art Web Mapping with Open Source
State of the Art Web Mapping with Open Source
OSCON Byrum
 
Spatial_Data_Analysis_with_open_source_softwares[1]
Spatial_Data_Analysis_with_open_source_softwares[1]
Joachim Nkendeys
 
20170504 - Warp 10 Tour, 42 USA
20170504 - Warp 10 Tour, 42 USA
Mathias Herberts
 
Playful Explorations of Public and Personal Data - OSCON Data 2011
Playful Explorations of Public and Personal Data - OSCON Data 2011
Andrew Turner
 
Road Monitoring - 2019 - IoT@Sapienza - v3
Road Monitoring - 2019 - IoT@Sapienza - v3
Pietro Spadaccino
 
Pyconmini Hiroshima 2018
Pyconmini Hiroshima 2018
ksnt
 
Reading and writing spatial data for the non-spatial programmer
Reading and writing spatial data for the non-spatial programmer
Chad Cooper
 
Processing planetary sized datasets
Processing planetary sized datasets
Tim Park
 
Spatial Analysis with R - the Good, the Bad, and the Pretty
Spatial Analysis with R - the Good, the Bad, and the Pretty
Noam Ross
 
The state of geo in ElasticSearch
The state of geo in ElasticSearch
Fan Robbin
 
Geospatial Visualization for datascience
Geospatial Visualization for datascience
Sivam Chinna
 
Geospatial Database.pptx
Geospatial Database.pptx
MariamKariam1
 
Ad

More from Marcel Caraciolo (20)

Como interpretar seu próprio genoma com Python
Como interpretar seu próprio genoma com Python
Marcel Caraciolo
 
Joblib: Lightweight pipelining for parallel jobs (v2)
Joblib: Lightweight pipelining for parallel jobs (v2)
Marcel Caraciolo
 
Construindo softwares de bioinformática para análises clínicas : Desafios e...
Construindo softwares de bioinformática para análises clínicas : Desafios e...
Marcel Caraciolo
 
Como Python ajudou a automatizar o nosso laboratório v.2
Como Python ajudou a automatizar o nosso laboratório v.2
Marcel Caraciolo
 
Como Python pode ajudar na automação do seu laboratório
Como Python pode ajudar na automação do seu laboratório
Marcel Caraciolo
 
Python on Science ? Yes, We can.
Python on Science ? Yes, We can.
Marcel Caraciolo
 
Oficina Python: Hackeando a Web com Python 3
Oficina Python: Hackeando a Web com Python 3
Marcel Caraciolo
 
Opensource - Como começar e dá dinheiro ?
Opensource - Como começar e dá dinheiro ?
Marcel Caraciolo
 
Benchy, python framework for performance benchmarking of Python Scripts
Benchy, python framework for performance benchmarking of Python Scripts
Marcel Caraciolo
 
Python e 10 motivos por que devo conhece-la ?
Python e 10 motivos por que devo conhece-la ?
Marcel Caraciolo
 
Construindo Sistemas de Recomendação com Python
Construindo Sistemas de Recomendação com Python
Marcel Caraciolo
 
Python, A pílula Azul da programação
Python, A pílula Azul da programação
Marcel Caraciolo
 
Novas Tendências para a Educação a Distância: Como reinventar a educação ?
Novas Tendências para a Educação a Distância: Como reinventar a educação ?
Marcel Caraciolo
 
Aula WebCrawlers com Regex - PyCursos
Aula WebCrawlers com Regex - PyCursos
Marcel Caraciolo
 
Arquivos Zip com Python - Aula PyCursos
Arquivos Zip com Python - Aula PyCursos
Marcel Caraciolo
 
PyFoursquare: Python Library for Foursquare
PyFoursquare: Python Library for Foursquare
Marcel Caraciolo
 
Sistemas de Recomendação: Como funciona e Onde Se aplica?
Sistemas de Recomendação: Como funciona e Onde Se aplica?
Marcel Caraciolo
 
Recomendação de Conteúdo para Redes Sociais Educativas
Recomendação de Conteúdo para Redes Sociais Educativas
Marcel Caraciolo
 
Content Recommendation Based on Data Mining in Adaptive Social Networks
Content Recommendation Based on Data Mining in Adaptive Social Networks
Marcel Caraciolo
 
Crab: A Python Framework for Building Recommender Systems
Crab: A Python Framework for Building Recommender Systems
Marcel Caraciolo
 
Como interpretar seu próprio genoma com Python
Como interpretar seu próprio genoma com Python
Marcel Caraciolo
 
Joblib: Lightweight pipelining for parallel jobs (v2)
Joblib: Lightweight pipelining for parallel jobs (v2)
Marcel Caraciolo
 
Construindo softwares de bioinformática para análises clínicas : Desafios e...
Construindo softwares de bioinformática para análises clínicas : Desafios e...
Marcel Caraciolo
 
Como Python ajudou a automatizar o nosso laboratório v.2
Como Python ajudou a automatizar o nosso laboratório v.2
Marcel Caraciolo
 
Como Python pode ajudar na automação do seu laboratório
Como Python pode ajudar na automação do seu laboratório
Marcel Caraciolo
 
Python on Science ? Yes, We can.
Python on Science ? Yes, We can.
Marcel Caraciolo
 
Oficina Python: Hackeando a Web com Python 3
Oficina Python: Hackeando a Web com Python 3
Marcel Caraciolo
 
Opensource - Como começar e dá dinheiro ?
Opensource - Como começar e dá dinheiro ?
Marcel Caraciolo
 
Benchy, python framework for performance benchmarking of Python Scripts
Benchy, python framework for performance benchmarking of Python Scripts
Marcel Caraciolo
 
Python e 10 motivos por que devo conhece-la ?
Python e 10 motivos por que devo conhece-la ?
Marcel Caraciolo
 
Construindo Sistemas de Recomendação com Python
Construindo Sistemas de Recomendação com Python
Marcel Caraciolo
 
Python, A pílula Azul da programação
Python, A pílula Azul da programação
Marcel Caraciolo
 
Novas Tendências para a Educação a Distância: Como reinventar a educação ?
Novas Tendências para a Educação a Distância: Como reinventar a educação ?
Marcel Caraciolo
 
Aula WebCrawlers com Regex - PyCursos
Aula WebCrawlers com Regex - PyCursos
Marcel Caraciolo
 
Arquivos Zip com Python - Aula PyCursos
Arquivos Zip com Python - Aula PyCursos
Marcel Caraciolo
 
PyFoursquare: Python Library for Foursquare
PyFoursquare: Python Library for Foursquare
Marcel Caraciolo
 
Sistemas de Recomendação: Como funciona e Onde Se aplica?
Sistemas de Recomendação: Como funciona e Onde Se aplica?
Marcel Caraciolo
 
Recomendação de Conteúdo para Redes Sociais Educativas
Recomendação de Conteúdo para Redes Sociais Educativas
Marcel Caraciolo
 
Content Recommendation Based on Data Mining in Adaptive Social Networks
Content Recommendation Based on Data Mining in Adaptive Social Networks
Marcel Caraciolo
 
Crab: A Python Framework for Building Recommender Systems
Crab: A Python Framework for Building Recommender Systems
Marcel Caraciolo
 

Recently uploaded (20)

"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 

GeoMapper, Python Script for Visualizing Data on Social Networks with Geo-location data

  • 1. GeoLocation Friends Visualizer Plotting your location social network data Marcel Caraciolo @marcelcaraciolo Developer, Cientist, contributor to the Crab recsys project, works with Python for 6 years, interested at mobile, education, machine learning and dataaaaa! Recife, Brazil - http://aimotion.blogspot.com
  • 2. How your friends are connected ?
  • 3. How your friends are connected ? Where are they ?
  • 4. Atépassar snapshot 300k users - March 2013
  • 6. Can I use it ??? Please!
  • 8. Of course! if  __name__  ==  '__main__':        parser  =  OptionParser(usage=SUPPRESS_USAGE)        print  'geocialMapper  v.%snBy  %sn'  %(__version__,__author__)        print  "Type  -­‐-­‐help  parameter  for  help.n"        parser.add_option('-­‐i','-­‐-­‐input-­‐file',dest='input_file',                                              help='Pickle  object  file  with  coordinates  and  quantity')        parser.add_option('-­‐s','-­‐-­‐size',dest='size',                                              help='image  dimmensions  height,width')        parser.add_option('-­‐o',  '-­‐-­‐output-­‐file',  dest='output_file',  default=  'map.jpg',                                              help='Output  file  for  saving  the  image')        parser.add_option('-­‐c',  '-­‐-­‐colormap',  dest='mode',  default='wb',                                              help='Mode  of  colormap  used:  wb,  all')        parser.add_option('-­‐p',  '-­‐-­‐connection',  dest='n_connections',  default=0,  type='int',                                              help=  'Threshold  for  the  number  of  interconnections  between  cities')        (options,args)  =  parser.parse_args()        if  not  options.input_file:                parser.error('You  must  specifiy  a  valid  pickle  object  to  load  data  (-­‐i  parameter)  !')        if  not  options.size:                parser.error('You  must  specifiy  the  dimmensions  of  the  image  (-­‐s  parameter)  !')        run_main(options)
  • 9. Of course! $  python  geo_mapper.py  -­‐i    data.pk    -­‐s  1600,1600    -­‐o    output_map.jpg {  ((latO,longO),(latD,longD)):  qtd,  ...} #(latO,longO)  are  the  latitude  and  longitude  of   the  origin  location.  Both  are  float  values. #(latD,longD)  ate  the  latitude  and  longitude  of   the  destiny  location.  Both  are  float  values. #qtd:  An  integer  that  represents  the  number  of   connections  between  both  coordinates  (cities).
  • 12. GeoLocation Friends Visualizer Plotting your location social network data Marcel Caraciolo @marcelcaraciolo Developer, Cientist, contributor to the Crab recsys project, works with Python for 6 years, interested at mobile, education, machine learning and dataaaaa! Recife, Brazil - http://aimotion.blogspot.com