
트위터 사용자의 트윗 위치를 가져오는 Python 스크립트
트위터 사용자들의 트윗 위치를 가져오는 Python 스크립트
로 <a href=https://twitter.com/MazenElzanaty>Mazen Elzanaty님이 제작함
TwLocation은 Python 2.7을 실행하는 모든 Linux 배포판에서 작동합니다. 먼저 터미널에서 다음 명령어를 입력하여 클론하세요.
git clone https://github.com/MazenElzanaty/TwLocation.git
이제 TwLocation 디렉토리로 이동하세요.
cd TwLocation
이제 다음 명령어로 요구 사항을 설치하세요.
pip install -r requirements.txt
config.txt를 편집하고 트위터 앱 키를 입력하세요.
cat config.txt
consumer_key = "XxXxXxxXXXxxxxXXXxXX"
consumer_secret = "xXXXXXXXXxxxxXxXXxxXxxXXxXxXxxxxXxXXxxxXXx"
access_key = "XXXXXXXX-xxXXxXXxxXxxxXxXXxXxXxXxxxXxxxxXxXXxXxxXX"
access_secret = "XxXXXXXXXXxxxXXXxXXxXxXxxXXXXXxXxxXXXXx"
이제 TwLocation을 실행할 수 있습니다.
python TwLocation.py