GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jfhr/reference-archive: Extract reference URLs and DOIs from an IEEE-style reference list and download the references to the filesystem.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.js
index.js
 
 
lib.js
lib.js
 
 
package.json
package.json
 
 
test.js
test.js
 
 

Repository files navigation

reference-archive

Extract reference URLs and DOIs from an IEEE-style reference list and download the references to the filesystem.

Features

  • downloads webpages as a single file in MHTML format
    • including client-rendered content
    • uses puppeteer-extra-plugin-stealth to evade anti-bot measures
  • downloads PDF files and other file types from URLs
  • downloads papers with a DOI from sci-hub
    • if you make use of this feature, consider donating to sci-hub

Usage

This software requires node.js, version 18 or newer.

Before you use, install the dependencies:

npm install  # or pnpm install, or yarn install, etc.

Use from the command line

  • Put your references in a plaintext file, e.g. references.txt
  • Create a target directory, e.g. ./archive
  • Run:
node index.js references.txt ./archive

Use as a library

import { extractAndSaveAllURLs } from "./lib.js";

await extractAndSaveAllURLs(
    '[1] First reference. [Online]. Available: https://jfhr.de/reference-archive/example.pdf (Accessed: 2023-07-23)\n' +
    '[2] Second reference. [Online]. Available: https://jfhr.de/reference-archive/example.html (Accessed: 2023-07-23)\n' +
    '[3] Third reference. [Online]. Available: https://jfhr.de/reference-archive/cr.html (Accessed: 2023-07-23)\n' +
    '[4] S. DeRisi, R. Kennison and N. Twyman, The What and Whys of DOIs. doi: 10.1371/journal.pbio.0000057\n' +
    '[5] N. Paskin, "Digital Object Identifier (DOI) System", Encyclopedia of Library and Information Sciences (3rd ed.)\n',
    './archive/'
);

Example

Say you have the following reference list:

[1] First reference. [Online]. Available: https://jfhr.de/reference-archive/example.pdf (Accessed: 2023-07-23)
[2] Second reference. [Online]. Available: https://jfhr.de/reference-archive/example.html (Accessed: 2023-07-23)
[3] Third reference. [Online]. Available: https://jfhr.de/reference-archive/cr.html (Accessed: 2023-07-23)
[4] S. DeRisi, R. Kennison and N. Twyman, The What and Whys of DOIs. doi: 10.1371/journal.pbio.0000057
[5] N. Paskin, "Digital Object Identifier (DOI) System", Encyclopedia of Library and Information Sciences (3rd ed.)

reference-archive would download the following files to your filesystem:

1.pdf    # PDF file from URL
2.mhtml  # Single file web page from URL
3.mhtml  # Single file web page from URL, including client-rendered content
4.pdf    # PDF file with DOI from sci-hub
         # no 5.* - reference 5 has no URL and no DOI

Test

To run tests:

node --test

About

Extract reference URLs and DOIs from an IEEE-style reference list and download the references to the filesystem.

Resources

Readme
CC0-1.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.