Top Banner
21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH http://link.koreatech.ac.kr
9

21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

Mar 29, 2015

Download

Documents

Warren Askey
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

21 Recipes for

Mining Twitter

2013. 5. 27

Yong-Jin JeongSoo-jin Shin

LINK@KOREATECHhttp://link.koreatech.ac.kr

Page 2: 21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

1.21 Geocoding Locations from Profiles (or Elsewhere)

• Problem – You want to geocode information in tweets for

situations beyond what the /geo and /status resources currently support.

• Solution – Use the geopy package to perform your own

geocoding against your web service of choice, such as Google Maps.

Page 3: 21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

• Geocoding–지역 이름 -> 위도 , 경도 좌표

• Easy_install geopy• https://github.com/geopy/geopy

1.21 Geocoding Locations from Profiles (or Elsewhere)

Page 4: 21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

1.21 Geocoding Locations from Profiles (or Elsewhere)

Page 5: 21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

1.21 Geocoding Locations from Profiles (or Elsewhere)

http://maps.googleapis.com/maps/api/geocode/json?address=cheonan&sensor=false

Page 6: 21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

1.21 Geocoding Locations from Profiles (or Elsewhere)

<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.0"> <Folder> <name>Geocoded user profiles for Twitter search results for koreatech</name> <Placemark> <Style> <LineStyle> <color>cc0000ff</color> <width>5.0</width> </LineStyle> </Style> <name>Seoul</name> <Point> <coordinates>126.9779692,37.566535,0</coordinates> </Point> </Placemark></Folder> </kml>

KML 은 구글어스 (Google Earth), 구글맵(Google Maps), 모바일 구글맵 (Google Maps for mobile) 등 어스 브라우저에 지리정보를 표시하는데 사용되는 파일 포맷

Page 7: 21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

1.21 Geocoding Locations from Profiles (or Elsewhere)

https://maps.google.co.kr/kml 확장자 파일의 사용

Page 8: 21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

1.21 Geocoding Locations from Profiles (or Elsewhere)

Google map api 사용

Page 9: 21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

1.21 Geocoding Locations from Profiles (or Elsewhere)