Code Monkey home page Code Monkey logo

springerdownloader's Introduction

SpringerDownloader

简介

Springer Nature为教育界和学术界人士免费提供基础教科书 随着冠状病毒的爆发对教育产生了前所未有的影响,Springer Nature 将免费提供各学科一系列基础教科书,以支持世界各地的高等教育机构。施普林格-自然(Springer Nature)正在发起一项全球计划,支持全球高等教育机构的学习和教学。这将使各机构能够免费获得施普林格自然公司电子书系列中的 500 多本重要教科书。这些书籍将免费对外公开下载。截止日期为 7 月底。

Springer Nature 已经免费提供了数千篇关于冠状病毒的研究文章( https://www.springernature.com/gp/researchers/campaigns/coronavirus ) , 以满足人们获取基本研究的需求,这项新举措更进一步支持教学工作,让学生、学者和大学教职员工能够访问 Springer Nature 的基础教科书。

Springer Nature Books 的总经理 Niels Peter Thomas 在评论时说。"随着冠状病毒危机在全球范围内的影响不断加剧,远程获取教育资源已经变得至关重要。我们希望在这一充满挑战的时期为教师和学生提供支持,并希望这一举措能在一定程度上帮助到大家,500 多本关键的教科书将在网上免费提供。"

除此计划外,斯普林格-自然出版社的教育部门 Macmillan International Higher Education 还采取了一系列举措,以支持学术界和学生在这个充满挑战的时代进行教学和学习。对于 MIHE 的书目,学术界人士可以在已经有印刷版的情况下申请电子书样书,并可以开放使用其课程管理系统的书籍。MIHE 还与 VitalSource、Kortext 和 RedShelf 等区域性供应商合作,以确保学生可以获得电子书,帮助他们继续远程学习。

所有书目和下载连接: https://resource-cms.springernature.com/springer-cms/rest/v1/content/17858272/data/v3

直接使用

  1. 先安装依赖项:pip install -r requirements.txt -i https://pypi.douban.com/simple
  2. 下载:python springer_downloader.py

Linux后台下载

  1. 先安装依赖项:pip install -r requirements.txt -i https://pypi.douban.com/simple
  2. 下载:bash download.sh

springerdownloader's People

Contributors

liushaoweihua avatar

Stargazers

 avatar 夜莺悠吟 avatar  avatar Micro_Kun avatar 李俊 avatar Chenliang Wang avatar OpenMind avatar Tomjackson avatar Chao Fang avatar

Watchers

Gehua Zhang avatar  avatar

springerdownloader's Issues

单个文件下载失败:临时解决方案

网络原因导致。

download函数的第三行临时增加判断分支:

if _ < current_book_numb:
    continue

其中current_book_numb为当前中断的文件编号,可在终端上获取。
直接重跑文件也可解决,代价是需要重新检测之前下载过的文件是否完整。

def download(self):
for _, i in enumerate(self.df):
print("Downloading 【{}】. \nCurrent #books: {}, total #books: {}".format(i[0], _ + 1, len(self.df)))
file_name = i[0] + "_" + i[1] + ".pdf"
file_name = file_name.replace("/", "_")
classification_dir = os.path.abspath(os.path.join(self.current_path, i[2]))
if not os.path.exists(classification_dir):
self.mkdir(classification_dir)
file_url = "https://link.springer.com/content/pdf/" + requests.get(i[3]).url.split("/")[-1] + ".pdf"
self.wget(file_url, save_path=classification_dir, rename=file_name)

pdf文件命名问题

windows环境下,pdf文件的名命方式会导致出现OSError: [Errno 22] Invalid argument:your path+filename错误。应该是filename中的|(windows环境下的文件名的非法字符)导致的。

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.