Git Product home page Git Product logo

cn-novel-stat-updater's Introduction

Chinese novels library / CN novel stat updater

This python script helps in keeping stats of your favorite novels from the chinese novel websites 69shuba.com, MTLNovel.com, Novelfull.com, Novelhi.com and comrademao.com. I made it because I overfilled my bookmarks and I can't always open 50 pages. ๐Ÿ˜‚

Prerequisites

  • rich console (pip install rich)
  • requests (pip install requests)
  • BeautifulSoup4 (pip install beautifulsoup4)
  • GoogleTrans (pip install googletrans==3.1.0a0)
  • Selenium for MTLNovel (pip install selenium)
  • Webdriver Manager for MTLNovel (pip install webdriver-manager)
  • re (pip install re)

Of course, python3 is needed. The forementioned packages can be installed using 'python3 -m pip install ...' or 'pip3 install ...'

Currently supported

  • Comrademao
  • MTLNovel
  • 69shuba
  • NovelFull
  • NovelHi

Usage

Arguments

-h : Short explanation for the arguments

example:

python3 python_chinese_books_updater.py -h

--check : Checking for updates

example:

python3 python_chinese_books_updater.py --check y

--link : Updating/Adding link to json file without chapter number

example:

python3 python_chinese_books_updater.py --link https://www.69shuba.com/book/46957.htm

This will update the json file with the novel with the last chapter read set as 1.

--link : Updating/Adding link to json file with chapter number

Another example is updating using chapter number :

example:

python3 python_chinese_books_updater.py --link https://www.69shuba.com/book/46957.htm --chapter 300

--delete: Deleting from json file or erasing the whole json file if empty dictionary

example:

python3 python_chinese_books_updater.py --delete y

(You can delete with comma seperated values or by a single value. For example, by typing '1,2,3,4' or '2'.)

--list: Listing all items in your novel collection/library

example:

python3 python_chinese_books_updater.py --list y

--load_bookmark: Loading bookmark file (tested with android Chrome)

example:

python3 python_chinese_books_updater.py --load_bookmark Bookmarks.json

Screenshots

Adding to collection list/Automatic detection

Automatic Detection Success

Automatic Detection Failure

Checking

Checking screenshot

Listing

List screenshot

Helping

Help screenshot

Bookmarks

Bookmark screenshot

Deleting

Deletion screenshot

Bookmarks location

Android chrome bookmarks are located in:

root/data/data/com.android.chrome/app_chrome/Default/Bookmarks

I just renamed them to Bookmarks.json, but you can choose not to and use them as is.

Errors

Google Translate has a bug where if you install with pip install googletrans it will show the error:

AttributeError: 'NoneType' object has no attribute 'group'

If you have that error do:

$ pip uninstall googletrans

$ pip install googletrans==3.1.0a0

cn-novel-stat-updater's People

Contributors

dionisiskon avatar

Stargazers

 avatar  avatar  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.