Coder Social home page Coder Social logo

bdaybot's Introduction

bdaybot

Join the chat at https://gitter.im/bdaybot/Lobby

This is a bot that will like and comment 'Thank you' on all the birthday posts posted on your timeline. It uses Selenium to automate facebook login and successively locating the birthday posts using web scrapping. The project is under heavy development.


This could have required no use of Selenium, and could have been done by using Facebook's Graph API, but only till the previous version. In the current version, API doesnt give access to the bdday posts individually. Instead, it groups all the 150 posts, say, and makes it a 1 story, with one story-id. There are no indvidual post-ids to access them.

TODO:

  • Automate facebook login
  • Locate Bdday posts from the user's wall, iterate over them, like and comment.
  • Take the username and password during the process.
  • Convert above into an extension or a web-app
  • Launch it as an .exe file for windows

Dependencies:

Install all the dependencies using pip install -r requirements.txt before using the script.

Usage:

Contribution guidelines:

  • Push to master.

Never push from master. Try creating a new branch on your local and push from the said branch.

Any suggestions or contributions are welcome!

Language:

  • JAVA ( Class can be found in folder bdaybot ).
  • Python3 ( firefox.py is in Python 3 ).

How to

firefox.py is the only updated file here, that can successfully do the required job. Do git clone cd bdaybot python3 firefox.py You need to install selenium package first. Download the latest geckodriver and place it in PATH.

bdaybot's People

Contributors

adityagit11 avatar alexandermalmstrom avatar amulpatwa1215 avatar arsalansaad avatar gitter-badger avatar himanshukgp avatar lucassouto avatar nitinkgp23 avatar ritesh-nitjsr avatar vernwalrahul avatar vinayakvivek avatar williamjmorenor avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bdaybot's Issues

Infinite loop in case of 2 groups of posts

Look into the error. Cannot say the exact reason of this happening, but most probably, this is happening because trying to reveal one group of posts hides the other group and trying to reveal the second group hides the first.
screenshot from 2016-12-31 21-00-07

Use random comments

Make a list of random Thank you comments , and while commenting, choose randomly from the list. Same comment on all the post won't look good.

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.