Skip to content

chusiang/crawler4note

Repository files navigation

Crawler Book Info

Python Version Docker Hub License: MIT

A sample crawler for quick parse some information (ex. book) for put to my Evernote.

Initialization

  1. Install the pyenv and pyenv-virtualenv.

  2. create virtualenv of py3.

    [ chusiang@noble ~/vcs/crawler4note ]
    $ pyenv virtualenv 3.13.2 py3
  3. Use py3 virtualenv under this directory.

    [ chusiang@noble ~/vcs/crawler4note ]
    $ pyenv local py3
  4. Install packages with pip.

    (py3) [ chusiang@noble ~/vcs/crawler4note ]
    $ pip3 install -r requirements.txt

Usage

tenlong.com.tw

  1. Run crawler with ISBN-13.

    (.py3) [ chusiang@noble ~/vcs/crawler4note ]
    $ python3 tenlong.py 9781491915325

books.com.tw

  1. Run crawler with url.

    (py3) [ chusiang@noble ~/vcs/crawler4note ]
    $ python3 books.py https://www.books.com.tw/products/0010810939
  2. Run crawler with product number.

    (py3) [ chusiang@noble ~/vcs/crawler4note ]
    $ python3 books.py 0010810939

Not support the ISBN-13 args yet on books.com.tw.

View Result

  1. Open html via Firefox on GNU/Linux.

    (py3) [ chusiang@noble ~/vcs/crawler4note ]
    $ firefox index.html

    ansiblebook

  2. We can see the https://www.tenlong.com.tw/products/9781491915325 , it is clean, now.

Run local Nginx for Evernote Web Clipper

The Evernote Web Clipper is not support local files, so we can clip it with Nginx.

  1. Run Nginx container.

    (py3) [ chusiang@noble ~/vcs/crawler4note ]
    $ docker run --name nginx -v "$(pwd)":/usr/share/nginx/html/ -p 80:80 -d nginx
  2. Open html via Firefox on GNU/Linux.

    (py3) [ chusiang@noble ~/vcs/crawler4note ]
    $ firefox http://localhost
  3. Finally, we can clip the information to Evernote with Evernote Web Clipper.

License

Copyright (c) chusiang from 2017-2025 under the MIT license.

About

A crawler for quick parse book info and more.

Topics

Resources

License

Stars

6 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors