Giter Site home page Giter Site logo

linespector's Introduction

linespector

中文文件: linespector: 半手動備份 line 文字對話內容與低解析度圖片

This project is for archiving messages of the "line" instant messaging app, which enjoys solid control over Taiwan's society. It contains two pieces of code:

  • linespector.py can be used to save the currently open chat to a sqlite database
  • index.php can be used to display the saved messages from the database

Preparation

My desktop is linuxmint, debian edition. You may need to change the following commands if you are not using one of the GNU/linux distributions.

  • Make sure you have either sqlite3 or litecli installed. I prefer the latter.
  • Install selenium (and litecli): '''pip3 install selenium litecli```
  • Execute create_db.sql in sqlite3 or litecli to create, say, line-chats.sqlite3 .

Updating the database and display

  • Start chromium in debug mode: chromium --remote-debugging-port=9222
  • Start the line extension for chrome, log in, and switch to the chat you want to save. Then: python3 linespector.py line-chats.sqlite3
  • You can do this from sqlite or litecli to verify that the correct messages have been saved: select strftime("%m-%d %H:%M",time_stamp,'unixepoch') as time, chat_title, user_name, msg_type from messages
  • Edit config.php
  • Visit index.php via apache2 with your browser

linespector's People

Contributors

ckhung avatar

Stargazers

alan avatar Yukai Huang 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.