As usual we were bored and scrollin through Facebook with no ideas in mind. We figured out that when you look at someone's profile who has their friends list in private, you can't see any of their friends. However, if you stumble upon one of their friends that has a public access to their fb friends, then you infer that they are friends. Hence, by repeating the process you can reconstruct their friend's list.

What it does

It logs into fb. It goes into someone's friends list predetermined manually, saves all of their friends list. Then it moves on to their friend's friends list, and repeats the process over and over, updating people's inferred friend's list.

How we built it

We used Selenium as a driver to access fb, navigate the friend's list, and moving from profile to profile. Then we used object oriented programming and dictionaries to store the information.

Challenges we ran into

Our two main challenges were: -logging into fb and maintaining ourselves logged in -scrolling down the whole friend's list in order to extract all friends and making it faster

Accomplishments that we're proud of

We are proud of creating a web spider and seeing it in action.

What we learned

We learned how to create a web spider with no prior experience, and also interpret html code, and navigate through an html file.

What's next for Facebook friend spider

It can be scaled up to use web servers and parallelize actions to speed up the process. Also, implement to recognise people.

Built With

Share this project: