Skip to content

Commit d9b83ea

Browse files
committed
Now uses API instead of web scrapping
1 parent 69a1d50 commit d9b83ea

25 files changed

Lines changed: 4373 additions & 9933 deletions

.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Publication figure web scraping
1+
# Publication Figure Retrieval Tool
22

33
This tool provides a method for scraping through NCBI's [PMC](https://www.ncbi.nlm.nih.gov/labs/pmc/) publications and retrieving (downloading) the figures from open access and publicly available publications.
44

eslint.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import eslintPluginNode from "eslint-plugin-node";
2-
import eslintPluginPrettier from "eslint-plugin-prettier";
3-
import globals from "globals";
1+
const eslintPluginPrettier = require("eslint-plugin-prettier");
2+
const globals = require("globals");
3+
const eslintPluginNode = require("eslint-plugin-node");
44

5-
export default [
5+
module.exports = [
66
{
77
ignores: ["**/*.min.js", ".vscode/**/*", "eslint.config.js", "node_modules/**/*"],
88
},

jest.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
export default {
1+
module.exports = {
2+
clearMocks: true,
23
coverageDirectory: "coverage",
3-
moduleFileExtensions: ["js", "json", "node"],
4+
moduleFileExtensions: ["js", "json", "node", "ts"],
5+
preset: "ts-jest",
46
testEnvironment: "node",
5-
transform: {
6-
"^.+\\.js$": "babel-jest",
7-
},
7+
testMatch: ["**/*.test.ts", "**/*.spec.ts", "**/*.test.js", "**/*.spec.js", "**/*.*_test.js", "**/*.*_test.ts"],
8+
testPathIgnorePatterns: ["/node_modules/", "/build/"],
89
};

0 commit comments

Comments
 (0)