Skip to content

Commit

Permalink
Now uses API instead of web scrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJSully committed Aug 25, 2024
1 parent 69a1d50 commit d9b83ea
Show file tree
Hide file tree
Showing 25 changed files with 4,373 additions and 9,933 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Publication figure web scraping
# Publication Figure Retrieval Tool

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.

Expand Down
8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import eslintPluginNode from "eslint-plugin-node";
import eslintPluginPrettier from "eslint-plugin-prettier";
import globals from "globals";
const eslintPluginPrettier = require("eslint-plugin-prettier");
const globals = require("globals");
const eslintPluginNode = require("eslint-plugin-node");

export default [
module.exports = [
{
ignores: ["**/*.min.js", ".vscode/**/*", "eslint.config.js", "node_modules/**/*"],
},
Expand Down
11 changes: 6 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
export default {
module.exports = {
clearMocks: true,
coverageDirectory: "coverage",
moduleFileExtensions: ["js", "json", "node"],
moduleFileExtensions: ["js", "json", "node", "ts"],
preset: "ts-jest",
testEnvironment: "node",
transform: {
"^.+\\.js$": "babel-jest",
},
testMatch: ["**/*.test.ts", "**/*.spec.ts", "**/*.test.js", "**/*.spec.js", "**/*.*_test.js", "**/*.*_test.ts"],
testPathIgnorePatterns: ["/node_modules/", "/build/"],
};
Loading

0 comments on commit d9b83ea

Please sign in to comment.