Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support JSTOR papers #15

Open
2 of 3 tasks
Nelson-Gon opened this issue Jul 6, 2021 · 4 comments
Open
2 of 3 tasks

Support JSTOR papers #15

Nelson-Gon opened this issue Jul 6, 2021 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed priority:high

Comments

@Nelson-Gon
Copy link
Owner

Nelson-Gon commented Jul 6, 2021

Description

I would like to cite papers from JSTOR

Similar Features

Similar to NCBI and other sources.

Feature Details

Full Harvard citation as required.

Proposed Implementation

  • Access dynamically loaded elements e.g. journal volume, journal pages. Use selenium/webdriver
  • Create citation as required.
  • Fix 403s in jstor tests
@Nelson-Gon Nelson-Gon added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers priority:high labels Jul 6, 2021
Nelson-Gon added a commit that referenced this issue Jul 6, 2021
Nelson-Gon added a commit that referenced this issue Jul 8, 2021
Nelson-Gon added a commit that referenced this issue Jul 8, 2021
Nelson-Gon added a commit that referenced this issue Jul 12, 2021
Nelson-Gon added a commit that referenced this issue Jul 12, 2021
Nelson-Gon added a commit that referenced this issue Jul 20, 2021
Nelson-Gon added a commit that referenced this issue Jul 21, 2021
@Nelson-Gon
Copy link
Owner Author

Nelson-Gon commented Jul 21, 2021

This works with curl -I "https://www.jstor.org/stable/26469531" --user-agent "Mozilla/5.0" but not python requests. No idea why for now.
This works locally but not on remote (Github actions).

@Nelson-Gon
Copy link
Owner Author

To test that jstor works (for now), remove the skipUnless condition and run tests locally. Tests fail on Github probably because Github scripts are blocked by JSTOR. See quanteda/quanteda#1593

Nelson-Gon added a commit that referenced this issue Jul 23, 2021
@Nelson-Gon
Copy link
Owner Author

Nothing to fix, at least locally.

@Nelson-Gon
Copy link
Owner Author

As of 5th November 2021, JSTOR uses dynamic JS with div attributes in the form data v--- which require a bit more work to work with. Plans are underway to (request?) access (to) JSTOR's API instead.

@Nelson-Gon Nelson-Gon reopened this Nov 5, 2021
Nelson-Gon added a commit that referenced this issue Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed priority:high
Projects
None yet
Development

No branches or pull requests

1 participant