Giter VIP home page Giter VIP logo

Comments (5)

thombashi avatar thombashi commented on August 11, 2024

As far as I know, google sheets API does not have the interface to access to sheets without authentication (even if public sheets). However. I could be enhanced to convert only the first sheet in the book by scraping from a public google sheets URL.
Is this enough for your use case?
If yes, I would try to implement the feature.

Thanks,

from sqlitebiter.

rcf18 avatar rcf18 commented on August 11, 2024

hi there, thanks for responding right away!
yes, if you'll be interested in doing that, we can then continue with the practice session that we started the other day. thanks in advance!

from sqlitebiter.

thombashi avatar thombashi commented on August 11, 2024

Thank for your answer.

I found another limitation to scraping from a public google sheets URL as it is
(number of columns limited to 26, and number of rows limited to 100).
So, it may not an effective solution.

I found two workarounds.
Both of the methods can convert the whole book (even when included multiple sheets).
Are these workarounds could solve your issue?

  • a. Publish the book as a web page and convert the page by using sqlitebiter url subcommand
  • b. Download as an Excel file and convert the file by using sqlitebiter file subcommand

a. Publish the book

  1. Select menu: File -> Publish to the web
  2. Select Link tab
  3. Select Entire Document and Web page
  4. Press Publish button
    • If you check Automatically republish when changes are made the page automatically update when you edit the page
  5. Convert from the published web page URL to a SQLite file by using sqlitebiter url subcommand
    • In this method, sheet names are dropped during conversion
$ sqlitebiter url https://docs.google.com/spreadsheets/d/e/XXXXX-XXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXX/pubhtml

b. Download the book

  1. Select menu: File -> Download as -> Microsoft Excel (.xlsx)
  2. Convert from the downloaded Excel file to a SQLite file by using sqlitebiter file subcommand
$ sqlitebiter file book.xlsx

from sqlitebiter.

rcf18 avatar rcf18 commented on August 11, 2024

yap, after we opened a github issue, we did the option b =)
good to learn from you that there is also option a.
thanks for sharing!

from sqlitebiter.

thombashi avatar thombashi commented on August 11, 2024

I'll close the issue, then.
Feel free to reopen if you still have any other issues.

from sqlitebiter.

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.