Skip to content

Help you enjoy downloading papers with CAS(Chinese Academy of Sciences) webVPN

License

Notifications You must be signed in to change notification settings

qiyang-ustc/CASPaperTunneling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CASPaperTunneling

Help you enjoy downloading papers with CAS(Chinese Academy of Sciences) webVPN.

Feature

  • Forget about the annoying webVPN, just download papers(if not exist locally)

  • Save downloaded papers to your local disk automatically

  • Try to open the downloaded with default pdf reader

Requirements

    pip install requests re json # Python 3

And a corresponding python interpreter at #!/usr/local/bin/python3. You can also modify the interpreter as you wish by just modifying the first line of the script in this repo: caspt.

Install

You can include ~/bin in your $PATH. Then just clone this repo to anywhere and run make install.

    make install
    # to unistall: make uninstall

Config

  • Login to CAS webVPN with Chrome. This program will automatically load the cookies from Chrome.

  • (Optional) See json config file at $HOME/.CASPTrc. Initialized automatically when first run.

Example

$ caspt https://journals.aps.org/prb/pdf/10.1103/PhysRevB.101.245139
Does not find the PDF in cache, downloading...
Downloading Finished. opening...

$ caspt https://journals.aps.org/prb/pdf/10.1103/PhysRevB.101.245139
Find the PDF in cache, opening...

Development

There are a lot of features need to be polished, including a more intelligent url process and tests on Windows. Pull requests are very welcome!

Integration

A proper integration of this program will allow you to open the pdf directly from the browser without opening the shell. Just type caspt to open your paper!

macOS

For macOS users with Alfred, we also provide a workflow to integrate this program with Alfred. You can load it by clicking macos/caspt.alfredworkflow in this repo.

About

Help you enjoy downloading papers with CAS(Chinese Academy of Sciences) webVPN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published