Giter Site home page Giter Site logo

pysocial's Introduction

PySocial

Python program that performs basic social network activities.

How To Use ?

  • Create a "smn.txt" file and type each person's name, followed by two dots and the person's friends' names with spaces in between. (Check sample file)
  • Create a "commands.txt" file and enter the command, followed by the inputs needed for that command with spaces in between. (Check sample file)
  • Run the program and check the "output.txt" file for the outputs!

The commands are as follows:

  • ANU: "Add New User". Enter the user's name you want to add as input.
  • DEU: "Delete Existing User". Enter the user's name you want to remove from the network as input.
  • ANF: "Add New Friend". Enter the users' names you want to link as input with a space in between.
  • DEF: "Delete Existing Friend". Enter the users' names you want to remove the link between as input with a space in between.
  • CF: "Count Friends". Enter the name of the user you want to learn the count of friends they have as input.
  • FPF: "Find Possible Friends". Enter the name of the user you want to find possible friends of and a distance between 1-3 as input with a space in between.(Distance means how many times the program looks for the friends of the friend.)
  • SF: "Suggest Friends". Enter the name of the user you want to retrieve a suggested friends list for that user and a mutuality degree between 1-4 as input with a space in between.(Mutuality degree means how many common friends are needed to be suggested as a friend.)

pysocial's People

Contributors

fevereclipse avatar

Stargazers

 avatar

Watchers

 avatar

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.