Giter Site home page Giter Site logo

crawl.facebook's Introduction

HOWTO

  • python facebookdb.py [your_facebook_login_email] [facebook_passwd] [facebook_id]
  • facebook_id can be obtained from following link from facebook. [http://www.facebook.com/profile.php?id=1545751628] 1545751628 is your id. sometimes if you have a username for facebook such as [http://www.facebook.com/simon] here simon is your id.
  • use python tobinary.py user_profiles.txt to convert the crawled result to binary format.

RESULT

  • crawled results are saved into files with utf-8 encoding, so somethings there might be errors if utf-8 is not properly supported on your computer.
  • social_graph.txt -> The crawled social graph using your account.
  • user_profiles.txt -> The encoded profile of users.
  • user_wallposts.txt -> The recent wallposts of users.

FORMAT

  • user_profiles.txt columns meaning of binary from left to right [27 columns excl. uid] sex, networks, relationships, interested_in, bio, favorite_quotations, religious_views, political_views, friendlist, photos_albums, myposts, websites, address, im_screen_name, email, facebookuri, phone, family, brithday, current_city, hometown, activities, interests, employers, grad_school, college, high_school

FILES

facebookdb.py

  • facebook crawler main file.
  • This file is responsible for the scheduling of crawling.

fb_db.py

  • database management file, currently not used.

friendlist_extractor.py

  • extract friend list from users.

profile_extractor.py

  • extract profiles from user info page.

snippets.py

  • code snippets.
  • please ignore.

tobinary.py

  • Convert the result into binary format.

wallpost_extractor.py

  • extract wallpost from user's wallpost page.
  • currently, this script needs to be updated to be fully functional.

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.