Coder Social home page Coder Social logo

instagram-tag-crawler's Introduction

인스타그램 태그 수집기

인스타그램 태그 페이지의 최신 글의 태그를 수집합니다. Google App Engine에서 동작하며 매 1분마다 랜덤함 샘플 데이터를 수집하도록 구현되었습니다. https://www.instagram.com/robots.txt 에 명시되어 있는 규칙을 준수합니다.

설치

  1. app.yaml 파일에서 application 수정
application: <your app engine id>
  1. library 설치
$ pip install -t lib -r requirements.txt

동작

Google App Engine 으로 프로젝트 실행하면 1분마다 /crawl 작업을 수행합니다. http://project-domain/crawl 페이지를 접속하면 직접 실행할 수 있습니다.

  1. 처음에는 지정된 기본 태그(먹스타그램, 일상 등등)의 페이지에서 최신 글의 태그를 수집합니다.
  2. 수집된 태그 중에 랜덤하게 태그를 뽑아서 다음 수집에 사용합니다.

수집된 태그 다운로드

아래 app-id 부분에 적절한 id를 넣어 실행하세요.

$ appcfg.py download_data --url=https://<app-id>.appspot.com/_ah/remote_api \
                        --kind=TagText_Sampling \
                        --config_file=bulkloader.yaml \
                        --filename=tags.txt \
                        --batch_size=50 --num_threads=12
$ ls tags.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.