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

feat: set user agent with --user-agent flag #12

Closed eliblock closed 3 years ago

eliblock commented 3 years ago

It may be desirable for a user to configure airtable-export's user-agent to better identify the tool's usage to AirTable.

Allow setting this option using a command line flag.

trevormunoz commented 3 years ago

Hi @simonw @eliblock I noticed that the Airtable API started returning 406 errors recently with the default behavior of httpx, which was causing airtable-export to fail. Being able to set the user agent to something else seems to alleviate the problem.

simonw commented 3 years ago

Smart fix, thanks!