Giter VIP home page Giter VIP logo

Comments (8)

bganglia avatar bganglia commented on June 19, 2024

@naustica Could you talk a little bit more about what you mean by a report?

from unpywall.

naustica avatar naustica commented on June 19, 2024

something like:
Report

Out of seven dois, two were invalid.

doi error
10.3253/dga.dsfs Unpaywall response
10.214134/afsaf Timeout...

Or do you have a better idea?

from unpywall.

naustica avatar naustica commented on June 19, 2024

ok, the table has just been converted to markdown. Imagine that as a plain python table

from unpywall.

bganglia avatar bganglia commented on June 19, 2024

Ok. Right now dois are requested one-by-one, so I guess it would make sense to add a function that takes in a list of dois and then prints this report to the console, if the console is the best place.

from unpywall.

bganglia avatar bganglia commented on June 19, 2024

@naustica What do you think about just a warning?

from unpywall.

naustica avatar naustica commented on June 19, 2024

@bganglia I dont know. I associate warnings with internal problems. But this is more of an external one. Or? But we can do that.

from unpywall.

bganglia avatar bganglia commented on June 19, 2024

@naustica Now that I think about it, a report would probably be easier to read anyway. Printing out a report sounds good to me.

from unpywall.

naustica avatar naustica commented on June 19, 2024

@bganglia Python provides also the tempfile module (https://docs.python.org/3.7/library/tempfile.html) which creates a temporary file that we could use to store dois from faulty connections. So we can create a temporary txt file that the user has access to. The tempfile would only exist for one session (I think) which is also nice.

from unpywall.

Related Issues (20)

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.