michenriksen / birdwatcher

Data analysis and OSINT framework for Twitter
https://michenriksen.com/blog/birdwatcher-twitter-osint-framework/
MIT License
410 stars 65 forks source link

Feature Request: Add scheduled download #3

Closed DigiAngel closed 7 years ago

DigiAngel commented 7 years ago

This app looks pretty cool....my plan is to let it run almost like a background service...is there a way to have this download tweets at a set interval? Thank you.

michenriksen commented 7 years ago

Hey there,

Currently there is no built-in way to execute commands on a schedule but it's an interesting idea though!

As a "hack" you could use a resource file with the following content:

workspace <your workspace name>
statuses fetch
exit

Save that file somewhere, e.g. ~/status_fetch.res. You can use this resource file to trigger a scheduled update with Cron, for example:

0 * * * * echo "resource ~/fetch_status.res" | birdwatcher >/dev/null 2>&1

This will kick off the command resource ~/fetch_status.res in Birdwatcher every hour.

Hope that helps you!

DigiAngel commented 7 years ago

That'll work thanks! I'll test, share my results, and then close this ticket unless you think it might be a viable FR. Thanks for the great app!

DigiAngel commented 7 years ago

Cron worked...thanks again!