simonw / airtable-export

Export Airtable data to YAML, JSON or SQLite files on disk
https://datasette.io/tools/airtable-export
Apache License 2.0
112 stars 15 forks source link

No tables downloaded if I only specify base_id #29

Open plopezgarcia opened 7 months ago

plopezgarcia commented 7 months ago

Congrats for this great package!

I followed the instructions and I am not able to download tables if I only supply the base_id parameter, e.g. this is my command (API key is the environment variable):

airtable-export export appXXXX --sqlite my_export.db

The output is a 0 byte empty my_export.db file.

However, if I supply the table names, it does work:

airtable-export export appXXXX tblYYYYY --sqlite my_export.db

I have verified with my own code that I am able to retrieve everything, from schema to all table names, via the API with these URLs:

https://api.airtable.com/v0/meta/bases/{base_id}/tables
https://api.airtable.com/v0/{base_id}/{table_name}

What could be the problem? Thanks in advance