Cloudflare D1 inserting data outside of workers

Hi, I have a python scraper running on a private server and I'd like it to insert data into D1. I used D1 inside of workers but how can I use it outside workers in a regular script? Is it possible?
Was this page helpful?