Giter VIP home page Giter VIP logo

naarad's People

Contributors

iharshit009 avatar sonusourav avatar sourabh1031 avatar thealphadollar avatar

Stargazers

 avatar

Watchers

 avatar  avatar

naarad's Issues

Decide Technologies To Use

We will be using methods such as scraping, web automation driving and form submission.

Selenium and beautifulsoup4 are two of the most known technologies but it is good for a student to do a research of the technologies and then give a report.

Allow Entry Of Data Through Config

We currently only accept input through CLI. This can get cumbersome since the groups may remain the same for all the time.

We should allow the user to allow to set config in a file. The settings can be as below:

[LOGIN]
username
password
[POST]
groups
description
image

The student is free to use any of the below implementations and make it work.

The task is huge since we also need it such that if the config is set for an option, we should not ask the user to enter it.

The above can be implemented using:

Accept Data To Post

Create a function to ask the user to add details which need to be posted in the group(s).

We will be accepting the following information to begin with:

  • Description
  • Image Path (optional)
  • List of groups (comma separated)

These should be stored in a single session of the script inside Facebook class.

Sanitize Group links

The group link may contain whitespace due to user not being able to decide whether to put space after / before comma or not.

We should make sure the links do not contain whitespace.

self.link = self.groups[i]

Create A CLI interface

A command line interface is the best way to manage apps which have multiple functionalities and require arguments.

Click is one of the best ways to implement a CLI. We can have two options: post and reset.

post: Used to post links on the group.
reset: Remove the saved credentials and start afresh.

The reset option will not take any argument. The post option will take at least one and at max three arguments:

  • --username : Phone number / email to use for login.
  • --password : Password for the facebook account.
  • --list : Path to text / csv file containing the link (or name) of all groups

Resources:

Setup PEP8Speaks

PEP8Speaks is a smell checker for python and we can implement it to maintain a smell-free code.

Make Post in Group

With the user given content for the post, make the post in a group.

A function can be created which takes content(s) and a single link as an argument and makes the post in the group.

This task requires a lot of analysis of the DOM structure of a group and the similarity between different group pages.

Allow sharing existing post

We currently allow the user to share a post by giving details but most of the time a person wants to share a particular post which has already been done by some page.

The process should be:

  • Ask the user for credentials
  • Ask users: If he wants to create a post or share existing one
  • If create a post, then we already have the path
  • If existing one: ask for the post link and then share it using the facebook dialogue to the group list provided.

Accept Input From The User

Make a function that accepts the three inputs from the user:

  • Phone Number / Email
  • Password
  • List of group links (or names)

The password should be stored after encrypting it on the user's system the first time he uses the application and after that, we should use the file unless it's not available or has been deleted.

Initialize Pipenv Environment

Pipenv is a service used to manage python packages and virtual environment system.

We will be using it along with other python utilities for development.

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.