Giter VIP home page Giter VIP logo

fb_typing's Introduction

FB_Typing

A short Python script to keep the "Typing..." state on Facebook messenger. Made by T-Rekt - J2TeaM

Hướng dẫn sử dụng

  1. Clone hoặc tải repo này về tại đây
  2. Giải nén. Nếu bạn đang sử dụng Windows thì mở thư mục build
  3. Mở file account_info.txt và sửa < your_email > thành Email/Facebook id/số điện thoại đăng nhập Facebook của bạn, và < your_password > bằng mật khẩu Facebook của bạn.
  4. Sửa < list|full > ở dòng mode=... thành full néu bạn muốn sử dụng chương trình với cả list friend, hoặc list nếu bạn chỉ muốn sử dụng với một danh sách nhất định. Nếu bạn chọn list, mở file list.txt và thêm id Facebook của những người bạn muốn chạy vào đó (Lưu ý là Facebook id chứ không phải username nhé).
  5. Mở file typing.exe và tận hưởng

P/s: Nếu bạn chưa biết bước 4 config ra sao thì có thể tham khảo thư mục sample_configuration

Cách thức hoạt động

Phần mềm hoạt động bằng cách lấy token full quyền + session qua app Android, sau đó sử dụng unofficial API của Facebook để gửi trạng thái "Typing..." đến những người dùng được chọn. Vì mỗi lần gửi, trạng thái "Typing..." chỉ tồn tại trong 30s, nên mình đặt lặp lại bước gửi trạng thái mỗi 25s.

Source code

Tất cả Python source code mình đã để sẵn trong repo. Lưu ý nếu Python bạn chưa có thư viện requests thì chạy

pip install requests

trước, sau khi config xong xuôi thì chạy

python typing.py

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.