Code Monkey home page Code Monkey logo

spider's Introduction

🕷️ Spider

Make a graph network of your followers.


Neo4j Graph Database

Neo4j is the most popular graph database according to DB-Engines ranking, and the 22ⁿᵈ most popular database overall.

$ docker-compose up

Dependencies

$ sudo pip install -r requirements.txt

Start spider.py

$ export INSTAGRAM_NEO4J='' 
$ export INSTAGRAM_USERNAME='' 
$ export INSTAGRAM_PASSWORD='' 
$ python spider.py # running with python 2

NEO4J Example Queries

MATCH (a:Person {gender: 'female'})-[:FOLLOW]->(b:Person) 
WITH a, count(b) as c 
WHERE c > 2 
RETURN a
MATCH (a:Person {gender: 'female'})-[:FOLLOW]->(b:Person) 
WITH a, collect(b) as collection, count(b) as c 
WHERE c > 2
RETURN a, collection
MATCH (me:Person {name: "aidenzibaei"}), (a:Person {gender: 'female'})-[:FOLLOW]->(b:Person) 
MATCH path = allShortestPaths((me)-[*..6]-(a))
WITH a, count(b) as c, path 
WHERE c > 3 RETURN a, path

spider's People

Contributors

ahmdrz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spider's Issues

Q: Speed of spider

Assuming that one wants to run CDLib against a friends-of-friend graph of Instagram for X amount of users (e.g. superfans of a band, working group of a project). How fast can the scraper go?

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.