trevorhobenshield / twitter-api-client

Implementation of X/Twitter v1, v2, and GraphQL APIs
https://pypi.org/project/twitter-api-client
MIT License
1.56k stars 207 forks source link

Customization of the "./data" folder location and name #229

Open Vishalk30 opened 1 month ago

Vishalk30 commented 1 month ago

Hi Trevor,

This package has been very useful so far! However, one concern I have is with the automatic creation of the data folder. This folder can be created haphazardly when using crontabs or complex applications that rely on a predictable location/naming of the data folder (the directory that is created when scraper runs). My question is, is it currently possible to customize this location/name and, if not, would it be possible to create an addition to customize this in some way?

Thanks as always!

-Vishal

luisadrianpuga commented 2 weeks ago

save_json in utils is the file to edit. therefore to update this, you need to edit the library files. I recommend doing a venv where you mess with it in there. then just change utils.py to have the save_json you need.