/pac-for-scholar

A pac list for university VPN or Shadowsocks or other porxy method to access scholar resources.

Primary LanguageJavaScriptMIT LicenseMIT

Original from yishanhe/scholar-pac, prepare to add more lists for universities in china.

2016-12-12 Add HTTPS site.

2016-12-12 Add some common literature database of China.

2016-12-11

Add scholar database list on : https://www.nic.edu.cn/RS/ipstat/internalip/ (only China educational network can connect) (ACS AIP EBSCO IEEE ISI LEXISNEXIS OCLC OVID PROQUEST STANFORD WILEY GALE BLACKWELL CAS IOP EBRARY JSTOR KNOVEL EBOL HARNET TAYLORFRANCIS SCIENCEDIRECT OSA TOPCODER EUROMONITOR THIEME ELSEVIER SPRINGER ETS EMERALD DOI CAMBRIDGE PRESSDISPLAY AIAA IGPUBLISHING BMJ RSC MUSE MCGRAWHILL OUP HWWILSON AGU INFORMA BIOONE VIS SILVERCHAIR ASP EUCLID NATURE SAGE ASCE ASTM KARGER PUBLISHINGTECHNOLOGY TRUVENHEALTH WOLTERSKLUWER DEGRUYTER ENGINEERINGVILLAGE VISUALBODY)

scholar-pac

A proxy auto-config (PAC) file for those scholars who are relying on a ssh tunnel to their school/department machine to download publications from those digital libraries purchased by their school/universities.

Setup ssh config for tunneling

Before setup the ssh tunnel, man ssh and man ssh_config are highly recommended.

More readings about ssh and ssh_config:

Do a vim .ssh/config to setup a config file for ssh. An example is like below:

Host tunnel-name
    HostName xxxxxxxxx
    Port 22
    DynamicForward localhost:1080
    ExitOnForwardFailure yes
    TCPKeepAlive yes
    Compression yes
    CompressionLevel 9
    ServerAliveInterval 60
    ServerAliveCountMax 60
    User yourusername

Those options are at your decisions.

Setup Chrome

There are many options to explore on different operating systems and browsers for proxying. I will give an example on Chrome.

Install SwitchyOmega

Delete those default profiles. Add a new profile and select PAC file, import the PAC file in this repository. Using a url of this file also works: https://raw.githubusercontent.com/yishanhe/scholar-pac/master/scholar.pac. Name this profile and save it.

Usage

First, start your tunnel ssh -f -N tunnel-name (You can use an alias if you find inputing ssh -f -N annoying.) This will run in background. In case, you can find this process and kill it by ps aux | grep tunnel-name to get its pid xxxxxx and kill xxxxxx.

After turninig on your SwitchyOmega to the profile you previously set, it is all set.

Enjoy it.

Try google my ip to test or just go to IEEE explorer to test.

  • Sometimes, you need to refresh the targeted page several times such that you can see "purchase"->"download".
  • Sometimes, the ssh link may not be stable on celluar tethering. Better turn on compression.

Accepting Pull Request to update the PAC file.

The current PAC file only contains a minimal requirement for my usage. And it should be expanded to include more digital libraries.