Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
get books in Douban wish list from school library
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
getbooks.py

README

== GetBooks

This script is used to find the books which you wish to read (in your
douban wish-to-read list) in the database of the library of TJU
(http://webpac.lib.tongji.edu.cn/opac/)

I wrote it for saving my time in searching those books by hand.

Email: onesuperclark@gmail.com


== Requirements

Before running, make sure the BeautifulSoup module has been installed.
If not, use the following command to intall.

In Ubuntu:

>>> sudo apt-get install python-beautilfulsoup

In Fedora:

>>> su

>>> yum install python-beautifulsoup


== How to Use

1. Run the script in shell:

>>> python getbooks.py


2. Insert your unique id of douban:

If your homepage's url is 'www.douban.com/people/onesuper',  just type
'onesuper'

>>>onesuper

3. Then the program will generate a html file in the directory, open
it with your browser:

>>> firefox result.html

NOTE: the page's code fomat is UTF-8
Something went wrong with that request. Please try again.