Git Product home page Git Product logo

zotero2semanticscholar's People

Contributors

davidalgis avatar phelps-matthew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

zotero2semanticscholar's Issues

Reading long csv bibliographies

My Zotero library has about 1900 articles in it. When I try to read the CSV from the GUI, the "Reading library..." text remains at the bottom for a very long time (several hours at least). I can still send the data to Semantic Scholar while the text is present, but it appears simply search and add the articles to Semantic Scholar that had been successfully read by the time I press the button (e.g., I tried to read in 1900 but ended up with 700 in my Semantic Scholar library).

I'm not sure if this is a bug and it's getting hung up at some point or, given very many hours, it will eventually read the whole CSV and work as expected.

error in _check_paper_page function and workaround

Hello,

Thanks for this tool! I started using Semantic Scholar but the lack of Zotero import do speed up the recommendation process was a bummer. This is exactly what I needed.

Out of the box, I had an error in the SemanticScholarScrapper, just within the _check_paper_page function. I'm on Windows 11, Python 3.11, in a fresh mambaforge install. It happened with different csv files with different paper data in it.

Traceback (most recent call last):
  File "C:\Users\boba4\mambaforge\envs\zz\Lib\tkinter\__init__.py", line 1948, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "c:\Users\boba4\Documents\GitHub\zotero2SemanticScholar\main.py", line 156, in _sendDataToSemanticscholar
    hasAddPaper = scrapper.scrap_paper_by_title(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\boba4\Documents\GitHub\zotero2SemanticScholar\SemanticScholarScrapper.py", line 92, in scrap_paper_by_title
    return self._check_paper_page(paper_title)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\boba4\Documents\GitHub\zotero2SemanticScholar\SemanticScholarScrapper.py", line 125, in _check_paper_page
    h1 = [h1 for h1 in h1_list if h1.get_attribute(
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: list index out of range

I didn't immediately see how to solve the error, but since the function was just a safety check to make sure the right paper is imported, I just went around the code and forced the function to return true. Everything else worked perfectly and the papers have been accurate.
If anyone else has this issue, hopefully this will be of use.

Thank you again David for this helpful tool!

two-way communication?

Thanks for this tools!
I was thinking it would be cool if there was a way to keep ones Zotero library and Semantic Scholar synced in a bidirectional way, whereby Zotero would pull new entries from ones Semantic Scholar library (avoiding the hassle of "bulk export"+"delete duplicates"

encountered some error

Hi, thank you for sharing the tool. I encountered an error when running the code.
image
The error seems to be related to the Selenium module, as it cannot click the "save to Library" button. Do you have any suggestions on how to resolve this issue? Thank you!

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.